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

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

print(sum(ps) - max(ps))