a,b,c=map(int,input().split())
x=max(a,b,c)
print(a+b+c-x) a,b,c=map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b c x=max(a,b,c) x max(a,b,c) max a b c print(a+b+c-x) print a+b+c-x a+b+c a+b a b c x a,b,c=map(int,input().split()) map(int,input().split()) a b,c=map(int,input().split()) map(int,input().split()) b c=map(int,input().split()) map(int,input().split()) c x=max(a,b,c) max(a,b,c) x
a,b,c=map(int,input().split())
x=max(a,b,c)
print(a+b+c-x)