a, b, c = list(map(int, input().split(" ")))

print(("%d"%(a+b+c - max(max(a, b), c))))
a, b, c = list(map(int, input().split(" ")))

print((min(a+b, b+c, c+a)))
a, b, c = list(map(int, input().split(" ")))
print(("%d" % (a + b + c - max(max(a, b), c))))

a, b, c = list(map(int, input().split(" ")))
print((min(a + b, b + c, c + a)))

-print(("%d" % (a + b + c - max(max(a, b), c)))) +print((min(a + b, b + c, c + a)))