분명 이시기에 좀 많이 풀었던걸로 기억하는데 기록이 없음..
2026/03/04 기준 기억이 안남...
li_x=[]
li_y=[]
for i in range(3):
a,b=map(int,input().split())
li_x.append(a)
li_y.append(b)
for it in set(li_x):
if not li_x.count(it) >=2:
print(it,end=" ")
for ith in set(li_y):
if not li_y.count(ith) >=2:
print(ith,end=" ")
a,b,c=map(int,input().split())
if a+b<=c:
if a+b==c:
d=c-1
print(a+b+d)
else:
print(a+b+(c-(c-a-b+1)))
elif a+c<=b:
if a+c==b:
d=b-1
print(a+c+d)
else:
print(a+c+(b-(b-a-c+1)))
elif c+b<=a:
if c+b==a:
d=a-1
print(c+b+d)
else:
print(c+b+(a-(a-c-b+1)))
else:
print(a+b+c)
N = int(input())
for i in range(1,N+1):
num=0
for a in str(i):
num+=int(a)
if i+num == N:
print(i)
break
elif i==N:
print("0")