# -*- coding: utf-8 -*-
from itertools import combinations

print(min(map(lambda x: sum(x), list(combinations(list(map(int, input().split())), 2))))) from itertools import combinations print(min(map(lambda x: sum(x), list(combinations(list(map(int, input().split())), 2))))) print min(map(lambda x: sum(x), list(combinations(list(map(int, input().split())), 2)))) min map(lambda x: sum(x), list(combinations(list(map(int, input().split())), 2))) map lambda x: sum(x) sum(x) sum x x list(combinations(list(map(int, input().split())), 2)) list combinations(list(map(int, input().split())), 2) combinations list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split 2
# -*- coding: utf-8 -*-
from itertools import combinations

print(min(map(lambda x: sum(x), list(combinations(list(map(int, input().split())), 2)))))
