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))