from itertools import permutations 
perm = permutations(map(int,input().split()), 2) 
ans=[]
for i in list(perm): 
  ans.append(sum(i))
print(min(ans)) from itertools import permutations perm = permutations(map(int,input().split()), 2) perm permutations(map(int,input().split()), 2) permutations map(int,input().split()) map int input().split() ().split () input split 2 ans=[] ans [] for i in list(perm): 
  ans.append(sum(i)) i list(perm) list perm ans.append(sum(i)) ans.append ans append sum(i) sum i print(min(ans)) print min(ans) min ans perm = permutations(map(int,input().split()), 2) permutations(map(int,input().split()), 2) perm ans=[] [] ans
from itertools import permutations 
perm = permutations(map(int,input().split()), 2) 
ans=[]
for i in list(perm): 
  ans.append(sum(i))
print(min(ans))