a = list(map(int,input().split()))
print(sum(a)-max(a)) a = list(map(int,input().split())) a list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split print(sum(a)-max(a)) print sum(a)-max(a) sum(a) sum a max(a) max a a = list(map(int,input().split())) list(map(int,input().split())) a
a = list(map(int,input().split()))
print(sum(a)-max(a))