import math



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

print((min(a + b, b + c, c + a)))
import math



a = [int(i) for i in input().split()]

print((sum(a) - max(a)))
import math

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

import math

a = [int(i) for i in input().split()]
print((sum(a) - max(a)))

-a, b, c = list(map(int, input().split())) -print((min(a + b, b + c, c + a))) +a = [int(i) for i in input().split()] +print((sum(a) - max(a)))