x,y,z = [int(a) for a in input().split()]

print(min(min(x+y,y+z),x+z)) int(a) for a in input().split() for a in input().split() a input().split() ().split () input split for a in input().split() int(a) int a x,y,z = [int(a) for a in input().split()] x [int(a) for a in input().split()] y z print(min(min(x+y,y+z),x+z)) print min(min(x+y,y+z),x+z) min min(x+y,y+z) min x+y x y y+z y z x+z x z z = [int(a) for a in input().split()] [int(a) for a in input().split()] z x,y,z = [int(a) for a in input().split()] [int(a) for a in input().split()] x y,z = [int(a) for a in input().split()] [int(a) for a in input().split()] y
x,y,z = [int(a) for a in input().split()]

print(min(min(x+y,y+z),x+z))
