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

time_sum_list = [ab_time, bc_time, ca_time]

max_time = max(ab_time, bc_time, ca_time)

min_time_line = sum(time_sum_list) - max_time
print(min_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 = max(ab_time, bc_time, ca_time) max_time max(ab_time, bc_time, ca_time) max ab_time bc_time ca_time min_time_line = sum(time_sum_list) - max_time min_time_line sum(time_sum_list) - max_time sum(time_sum_list) sum time_sum_list max_time print(min_time_line) print min_time_line ab_time, bc_time, ca_time = map(int, input().split()) map(int, input().split()) ab_time ca_time = map(int, input().split()) map(int, input().split()) ca_time max_time = max(ab_time, bc_time, ca_time) max(ab_time, bc_time, ca_time) max_time bc_time, ca_time = map(int, input().split()) map(int, input().split()) bc_time time_sum_list = [ab_time, bc_time, ca_time] [ab_time, bc_time, ca_time] time_sum_list min_time_line = sum(time_sum_list) - max_time sum(time_sum_list) - max_time min_time_line
ab_time, bc_time, ca_time = map(int, input().split())

time_sum_list = [ab_time, bc_time, ca_time]

max_time = max(ab_time, bc_time, ca_time)

min_time_line = sum(time_sum_list) - max_time
print(min_time_line)
