a,b,c=map(int, input().split())
l =sorted([a,b,c])
 
s = sum(l[:2])
print(s) a,b,c=map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b c l =sorted([a,b,c]) l sorted([a,b,c]) sorted [a,b,c] a b c s = sum(l[:2]) s sum(l[:2]) sum l[:2] l :2 2 print(s) print s 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 l =sorted([a,b,c]) sorted([a,b,c]) l s = sum(l[:2]) sum(l[:2]) s
a,b,c=map(int, input().split())
l =sorted([a,b,c])
 
s = sum(l[:2])
print(s)