import itertools
p, q, r = map(int, input().split())
mn = 10 ** 9
for v in itertools.combinations([p, q, r], 2):
    mn = min(mn, v[0]+v[1])
print(mn) import itertools itertools p, q, r = map(int, input().split()) p map(int, input().split()) map int input().split() ().split () input split q r mn = 10 ** 9 mn 10 ** 9 10 9 for v in itertools.combinations([p, q, r], 2):
    mn = min(mn, v[0]+v[1]) v itertools.combinations([p, q, r], 2) itertools.combinations itertools combinations [p, q, r] p q r 2 mn = min(mn, v[0]+v[1]) mn min(mn, v[0]+v[1]) min mn v[0]+v[1] v[0] v 0 v[1] v 1 print(mn) print mn r = map(int, input().split()) map(int, input().split()) r q, r = map(int, input().split()) map(int, input().split()) q mn = 10 ** 9 10 ** 9 mn mn = min(mn, v[0]+v[1]) min(mn, v[0]+v[1]) mn p, q, r = map(int, input().split()) map(int, input().split()) p
import itertools
p, q, r = map(int, input().split())
mn = 10 ** 9
for v in itertools.combinations([p, q, r], 2):
    mn = min(mn, v[0]+v[1])
print(mn)
