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