import sys
import itertools
rl = lambda: list(map(int, sys.stdin.readline().split()))
print(min(list(map(sum, itertools.combinations(rl(), 2))))) import sys sys import itertools itertools rl = lambda: list(map(int, sys.stdin.readline().split())) rl lambda: list(map(int, sys.stdin.readline().split())) list(map(int, sys.stdin.readline().split())) list map(int, sys.stdin.readline().split()) map int sys.stdin.readline().split() sys.stdin.readline().split sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline split print(min(list(map(sum, itertools.combinations(rl(), 2))))) print min(list(map(sum, itertools.combinations(rl(), 2)))) min list(map(sum, itertools.combinations(rl(), 2))) list map(sum, itertools.combinations(rl(), 2)) map sum itertools.combinations(rl(), 2) itertools.combinations itertools combinations rl() rl 2 rl = lambda: list(map(int, sys.stdin.readline().split())) lambda: list(map(int, sys.stdin.readline().split())) rl
import sys
import itertools
rl = lambda: list(map(int, sys.stdin.readline().split()))
print(min(list(map(sum, itertools.combinations(rl(), 2)))))