https://www.acmicpc.net/problem/1759
if __name__ == '__main__':
lst = []
for _ in range(9):
lst.append(int(input()))
for x in list(comb(lst,7)):
if sum(x) == 100:
for answer in sorted(x):
print(answer)
exit()
9개의 숫자 중 7개를 골라 그 합이 100이면 출력하로 바로 종료
import sys
from itertools import combinations as comb
input = sys.stdin.readline
if __name__ == '__main__':
lst = []
for _ in range(9):
lst.append(int(input()))
for x in list(comb(lst,7)):
if sum(x) == 100:
for answer in sorted(x):
print(answer)
exit()