S_list = list(map(int,input().split()))
sum_1 = sum(S_list)
S_list_1 = [sum_1 - i for i in S_list] 
print(min(S_list_1))   S_list = list(map(int,input().split())) S_list list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split sum_1 = sum(S_list) sum_1 sum(S_list) sum S_list sum_1 - i for i in S_list for i in S_list i S_list for i in S_list sum_1 - i sum_1 i S_list_1 = [sum_1 - i for i in S_list] S_list_1 [sum_1 - i for i in S_list] print(min(S_list_1)) print min(S_list_1) min S_list_1 S_list_1 = [sum_1 - i for i in S_list] [sum_1 - i for i in S_list] S_list_1 S_list = list(map(int,input().split())) list(map(int,input().split())) S_list sum_1 = sum(S_list) sum(S_list) sum_1
S_list = list(map(int,input().split()))
sum_1 = sum(S_list)
S_list_1 = [sum_1 - i for i in S_list] 
print(min(S_list_1))  