import sys
sys.setrecursionlimit(10**6)

#a = int(input())
#b = list(map(int, input().split()))
p, q, r = map(int, input().split())
#s = input()
#s,t = input().split()
#
#readline = sys.stdin.readline
#n,m = [int(i) for i in readline().split()]
#ab = [[int(i) for i in readline().split()] for _ in range(n)]

ans = min([p+q, p+r, q+r])

print(ans) import sys sys sys.setrecursionlimit(10**6) sys.setrecursionlimit sys setrecursionlimit 10**6 10 6 p, q, r = map(int, input().split()) p map(int, input().split()) map int input().split() ().split () input split q r ans = min([p+q, p+r, q+r]) ans min([p+q, p+r, q+r]) min [p+q, p+r, q+r] p+q p q p+r p r q+r q r print(ans) print ans ans = min([p+q, p+r, q+r]) min([p+q, p+r, q+r]) ans r = map(int, input().split()) map(int, input().split()) r q, r = map(int, input().split()) map(int, input().split()) q p, q, r = map(int, input().split()) map(int, input().split()) p
import sys
sys.setrecursionlimit(10**6)

#a = int(input())
#b = list(map(int, input().split()))
p, q, r = map(int, input().split())
#s = input()
#s,t = input().split()
#
#readline = sys.stdin.readline
#n,m = [int(i) for i in readline().split()]
#ab = [[int(i) for i in readline().split()] for _ in range(n)]

ans = min([p+q, p+r, q+r])

print(ans)