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