n=list(map(int,input().split()));print(min([n[i]+n[j] for i in range(3) for j in range(i+1,3)])) n[i]+n[j] for i in range(3) for j in range(i+1,3) for i in range(3) for j in range(i+1,3) i range(3) range 3 for j in range(i+1,3) j range(i+1,3) range i+1 i 1 3 for j in range(i+1,3) n[i]+n[j] n[i] n i n[j] n j n=list(map(int,input().split())) n list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split print(min([n[i]+n[j] for i in range(3) for j in range(i+1,3)])) print min([n[i]+n[j] for i in range(3) for j in range(i+1,3)]) min [n[i]+n[j] for i in range(3) for j in range(i+1,3)] n=list(map(int,input().split())) list(map(int,input().split())) n
n=list(map(int,input().split()));print(min([n[i]+n[j] for i in range(3) for j in range(i+1,3)]))