P, Q, R = map(int, input().split())
 
print(P + Q + R - max(P, Q, R)) P, Q, R = map(int, input().split()) P map(int, input().split()) map int input().split() ().split () input split Q R print(P + Q + R - max(P, Q, R)) print P + Q + R - max(P, Q, R) P + Q + R P + Q P Q R max(P, Q, R) max P Q R 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
P, Q, R = map(int, input().split())
 
print(P + Q + R - max(P, Q, R))