import itertools
p, q, r = map(int, input().split())
ans = 10**18
for v in itertools.permutations([p, q, r], 2):
    ans = min(ans, sum(v))
print(ans) import itertools itertools p, q, r = map(int, input().split()) p map(int, input().split()) map int input().split() ().split () input split q r ans = 10**18 ans 10**18 10 18 for v in itertools.permutations([p, q, r], 2):
    ans = min(ans, sum(v)) v itertools.permutations([p, q, r], 2) itertools.permutations itertools permutations [p, q, r] p q r 2 ans = min(ans, sum(v)) ans min(ans, sum(v)) min ans sum(v) sum v print(ans) print ans ans = min(ans, sum(v)) min(ans, sum(v)) ans p, q, r = map(int, input().split()) map(int, input().split()) p ans = 10**18 10**18 ans r = map(int, input().split()) map(int, input().split()) r q, r = map(int, input().split()) map(int, input().split()) q
import itertools
p, q, r = map(int, input().split())
ans = 10**18
for v in itertools.permutations([p, q, r], 2):
    ans = min(ans, sum(v))
print(ans)
