import itertools
val = 0
for i in itertools.permutations(list(map(int, input().split())), 2):
    if val == 0:
        val = sum(i)
    else:
        val = min(sum(i), val)
print(val) import itertools itertools val = 0 val 0 for i in itertools.permutations(list(map(int, input().split())), 2):
    if val == 0:
        val = sum(i)
    else:
        val = min(sum(i), val) i itertools.permutations(list(map(int, input().split())), 2) itertools.permutations itertools permutations list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split 2 if val == 0:
        val = sum(i)
    else:
        val = min(sum(i), val) val == 0 val 0 val = sum(i) val sum(i) sum i val = min(sum(i), val) val min(sum(i), val) min sum(i) sum i val print(val) print val val = 0 0 val val = sum(i) sum(i) val val = min(sum(i), val) min(sum(i), val) val
import itertools
val = 0
for i in itertools.permutations(list(map(int, input().split())), 2):
    if val == 0:
        val = sum(i)
    else:
        val = min(sum(i), val)
print(val)
