pqr = list(map(int, input().split()))

ans = float("inf")
for i in range(2):
  for j in range(i+1,3):
    t = pqr[i]+pqr[j]
    if t < ans: ans = t
print(ans) pqr = list(map(int, input().split())) pqr list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split ans = float("inf") ans float("inf") float "inf" for i in range(2):
  for j in range(i+1,3):
    t = pqr[i]+pqr[j]
    if t < ans: ans = t i range(2) range 2 for j in range(i+1,3):
    t = pqr[i]+pqr[j]
    if t < ans: ans = t j range(i+1,3) range i+1 i 1 3 t = pqr[i]+pqr[j] t pqr[i]+pqr[j] pqr[i] pqr i pqr[j] pqr j if t < ans: ans t < ans t ans print(ans) print ans pqr = list(map(int, input().split())) list(map(int, input().split())) pqr t = pqr[i]+pqr[j] pqr[i]+pqr[j] t ans = float("inf") float("inf") ans
pqr = list(map(int, input().split()))

ans = float("inf")
for i in range(2):
  for j in range(i+1,3):
    t = pqr[i]+pqr[j]
    if t < ans: ans = t
print(ans)