a, b, c = map(int, input().split())
d = a + b
f = a + c
g = b + c
my_list = [d, f, g]
h = my_list.sort()
i = my_list[0]
print(i) a, b, c = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b c d = a + b d a + b a b f = a + c f a + c a c g = b + c g b + c b c my_list = [d, f, g] my_list [d, f, g] d f g h = my_list.sort() h my_list.sort() my_list.sort my_list sort i = my_list[0] i my_list[0] my_list 0 print(i) print i b, c = map(int, input().split()) map(int, input().split()) b d = a + b a + b d a, b, c = map(int, input().split()) map(int, input().split()) a g = b + c b + c g f = a + c a + c f i = my_list[0] my_list[0] i my_list = [d, f, g] [d, f, g] my_list c = map(int, input().split()) map(int, input().split()) c h = my_list.sort() my_list.sort() h
a, b, c = map(int, input().split())
d = a + b
f = a + c
g = b + c
my_list = [d, f, g]
h = my_list.sort()
i = my_list[0]
print(i)