import itertools
pqr = list(map(int, input().split()))
print(min([a+b for a, b in itertools.combinations(pqr, 2)])) import itertools itertools pqr = list(map(int, input().split())) pqr list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split a+b for a, b in itertools.combinations(pqr, 2) for a, b in itertools.combinations(pqr, 2) a b itertools.combinations(pqr, 2) itertools.combinations itertools combinations pqr 2 for a, b in itertools.combinations(pqr, 2) a+b a b print(min([a+b for a, b in itertools.combinations(pqr, 2)])) print min([a+b for a, b in itertools.combinations(pqr, 2)]) min [a+b for a, b in itertools.combinations(pqr, 2)] pqr = list(map(int, input().split())) list(map(int, input().split())) pqr
import itertools
pqr = list(map(int, input().split()))
print(min([a+b for a, b in itertools.combinations(pqr, 2)]))