a =list(map(int,input().split()))

a1=sorted(a)


print(a1[0]+a1[1]) a =list(map(int,input().split())) a list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split a1=sorted(a) a1 sorted(a) sorted a print(a1[0]+a1[1]) print a1[0]+a1[1] a1[0] a1 0 a1[1] a1 1 a1=sorted(a) sorted(a) a1 a =list(map(int,input().split())) list(map(int,input().split())) a
a =list(map(int,input().split()))

a1=sorted(a)


print(a1[0]+a1[1])
