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