import itertools
l = list(map(int, input().split()))
p = itertools.permutations(l, 2)
a = [sum(i) for i in p]
print(min(a)) import itertools itertools l = list(map(int, input().split())) l list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split p = itertools.permutations(l, 2) p itertools.permutations(l, 2) itertools.permutations itertools permutations l 2 sum(i) for i in p for i in p i p for i in p sum(i) sum i a = [sum(i) for i in p] a [sum(i) for i in p] print(min(a)) print min(a) min a p = itertools.permutations(l, 2) itertools.permutations(l, 2) p l = list(map(int, input().split())) list(map(int, input().split())) l a = [sum(i) for i in p] [sum(i) for i in p] a
import itertools
l = list(map(int, input().split()))
p = itertools.permutations(l, 2)
a = [sum(i) for i in p]
print(min(a))