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

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

print(sum(inp) - max(inp))