from itertools import combinations

s=list(map(int,input().split()))
t=list(combinations(s,2))
ans=float('inf')
for i in t:
  ans=min(ans,sum(i))
print(ans) from itertools import combinations s=list(map(int,input().split())) s list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split t=list(combinations(s,2)) t list(combinations(s,2)) list combinations(s,2) combinations s 2 ans=float('inf') ans float('inf') float 'inf' for i in t:
  ans=min(ans,sum(i)) i t ans=min(ans,sum(i)) ans min(ans,sum(i)) min ans sum(i) sum i print(ans) print ans t=list(combinations(s,2)) list(combinations(s,2)) t ans=float('inf') float('inf') ans ans=min(ans,sum(i)) min(ans,sum(i)) ans s=list(map(int,input().split())) list(map(int,input().split())) s
from itertools import combinations

s=list(map(int,input().split()))
t=list(combinations(s,2))
ans=float('inf')
for i in t:
  ans=min(ans,sum(i))
print(ans)