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