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

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

print(sum(V) - max(V))