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

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

print(sum(flight)-max(flight))