# AtCoder Beginner Contest 129
# A - Airplane

a=list(map(int,input().split()))
a.sort()
print(sum(a[0:2])) a=list(map(int,input().split())) a list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split a.sort() a.sort a sort print(sum(a[0:2])) print sum(a[0:2]) sum a[0:2] a 0:2 0 2 a=list(map(int,input().split())) list(map(int,input().split())) a
# AtCoder Beginner Contest 129
# A - Airplane

a=list(map(int,input().split()))
a.sort()
print(sum(a[0:2]))
