p, q, r = map(int, input().split())
ans = sum([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 = sum([p, q, r]) - max([p, q, r]) ans sum([p, q, r]) - max([p, q, r]) sum([p, q, r]) sum [p, q, r] p q r max([p, q, r]) max [p, q, r] p q r print(ans) print ans 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 ans = sum([p, q, r]) - max([p, q, r]) sum([p, q, r]) - max([p, q, r]) ans
p, q, r = map(int, input().split())
ans = sum([p, q, r]) - max([p, q, r])
print(ans)