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

if a == max(a, b, c):

    print((b + c))

elif b == max(a, b, c):

    print((a + c))

elif c == max(a, b, c):

    print((a+b))

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

s = list([a,b,c])

s.sort()

print((s[0] + s[1]))
a, b, c = list(map(int, input().split()))
if a == max(a, b, c):
    print((b + c))
elif b == max(a, b, c):
    print((a + c))
elif c == max(a, b, c):
    print((a + b))

a, b, c = list(map(int, input().split()))
s = list([a, b, c])
s.sort()
print((s[0] + s[1]))

-if a == max(a, b, c): -    print((b + c)) -elif b == max(a, b, c): -    print((a + c)) -elif c == max(a, b, c): -    print((a + b)) +s = list([a, b, c]) +s.sort() +print((s[0] + s[1]))