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