P, Q, R = map(int,input().split())

x = [P, Q, R]
x = sorted(x)
print(x[0] + x[1]) P, Q, R = map(int,input().split()) P map(int,input().split()) map int input().split() ().split () input split Q R x = [P, Q, R] x [P, Q, R] P Q R x = sorted(x) x sorted(x) sorted x print(x[0] + x[1]) print x[0] + x[1] x[0] x 0 x[1] x 1 P, Q, R = map(int,input().split()) map(int,input().split()) P Q, R = map(int,input().split()) map(int,input().split()) Q R = map(int,input().split()) map(int,input().split()) R x = [P, Q, R] [P, Q, R] x x = sorted(x) sorted(x) x
P, Q, R = map(int,input().split())

x = [P, Q, R]
x = sorted(x)
print(x[0] + x[1])