#https://atcoder.jp/contests/abc129/tasks/abc129_a
N_List = sorted(list(map(int,input().split())))
print(sum(N_List[:2]))
 N_List = sorted(list(map(int,input().split()))) N_List sorted(list(map(int,input().split()))) sorted list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split print(sum(N_List[:2])) print sum(N_List[:2]) sum N_List[:2] N_List :2 2 N_List = sorted(list(map(int,input().split()))) sorted(list(map(int,input().split()))) N_List
#https://atcoder.jp/contests/abc129/tasks/abc129_a
N_List = sorted(list(map(int,input().split())))
print(sum(N_List[:2]))

