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