p, q, r = map(int, input().split())
res = p + q + r - max(p, q, r)
print(res) p, q, r = map(int, input().split()) p map(int, input().split()) map int input().split() ().split () input split q r res = p + q + r - max(p, q, r) res p + q + r - max(p, q, r) p + q + r p + q p q r max(p, q, r) max p q r print(res) print res res = p + q + r - max(p, q, r) p + q + r - max(p, q, r) res 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())
res = p + q + r - max(p, q, r)
print(res)