ab_time, bc_time, ca_time = map(int, input().split())

time_sum_list = [ab_time, bc_time, ca_time]

max_time_line = max(ab_time, bc_time, ca_time)

print(sum(time_sum_list) - max_time_line) ab_time, bc_time, ca_time = map(int, input().split()) ab_time map(int, input().split()) map int input().split() ().split () input split bc_time ca_time time_sum_list = [ab_time, bc_time, ca_time] time_sum_list [ab_time, bc_time, ca_time] ab_time bc_time ca_time max_time_line = max(ab_time, bc_time, ca_time) max_time_line max(ab_time, bc_time, ca_time) max ab_time bc_time ca_time print(sum(time_sum_list) - max_time_line) print sum(time_sum_list) - max_time_line sum(time_sum_list) sum time_sum_list max_time_line time_sum_list = [ab_time, bc_time, ca_time] [ab_time, bc_time, ca_time] time_sum_list bc_time, ca_time = map(int, input().split()) map(int, input().split()) bc_time ca_time = map(int, input().split()) map(int, input().split()) ca_time max_time_line = max(ab_time, bc_time, ca_time) max(ab_time, bc_time, ca_time) max_time_line ab_time, bc_time, ca_time = map(int, input().split()) map(int, input().split()) ab_time
ab_time, bc_time, ca_time = map(int, input().split())

time_sum_list = [ab_time, bc_time, ca_time]

max_time_line = max(ab_time, bc_time, ca_time)

print(sum(time_sum_list) - max_time_line)