A,B,C = map (int, input ().split ())
if A>=B>=C or A>=C>=B:
  print (B+C)
elif B>=A>=C or B>=C>=A:
  print (A+C)
else:
  print (A+B) A,B,C = map (int, input ().split ()) A map (int, input ().split ()) map int input ().split () ().split () input split B C if A>=B>=C or A>=C>=B:
  print (B+C)
elif B>=A>=C or B>=C>=A:
  print (A+C)
else:
  print (A+B) A>=B>=C or A>=C>=B A>=B>=C A>=B A B C A>=C>=B A>=C A C B print (B+C) print B+C B C elif B>=A>=C or B>=C>=A:
  print (A+C) B>=A>=C or B>=C>=A B>=A>=C B>=A B A C B>=C>=A B>=C B C A print (A+C) print A+C A C print (A+B) print A+B A B B,C = map (int, input ().split ()) map (int, input ().split ()) B C = map (int, input ().split ()) map (int, input ().split ()) C A,B,C = map (int, input ().split ()) map (int, input ().split ()) A
A,B,C = map (int, input ().split ())
if A>=B>=C or A>=C>=B:
  print (B+C)
elif B>=A>=C or B>=C>=A:
  print (A+C)
else:
  print (A+B)