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

b = a[0] + a[1]

if b > a[1] + a[2]:
  b = a[1] + a[2]

if b > a[2] + a[0]:
  b = a[2] + a[0]
  
print(b) a = list(map(int, input().split())) a list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split b = a[0] + a[1] b a[0] + a[1] a[0] a 0 a[1] a 1 if b > a[1] + a[2]:
  b = a[1] + a[2] b > a[1] + a[2] b a[1] + a[2] a[1] a 1 a[2] a 2 b = a[1] + a[2] b a[1] + a[2] a[1] a 1 a[2] a 2 if b > a[2] + a[0]:
  b = a[2] + a[0]
   b > a[2] + a[0] b a[2] + a[0] a[2] a 2 a[0] a 0 b = a[2] + a[0] b a[2] + a[0] a[2] a 2 a[0] a 0 print(b) print b a = list(map(int, input().split())) list(map(int, input().split())) a b = a[0] + a[1] a[0] + a[1] b b = a[1] + a[2] a[1] + a[2] b b = a[2] + a[0] a[2] + a[0] b
a = list(map(int, input().split()))

b = a[0] + a[1]

if b > a[1] + a[2]:
  b = a[1] + a[2]

if b > a[2] + a[0]:
  b = a[2] + a[0]
  
print(b)