h = list(map(int, input().split()))
print(sum(sorted(h)[:2])) h = list(map(int, input().split())) h list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split print(sum(sorted(h)[:2])) print sum(sorted(h)[:2]) sum sorted(h)[:2] (h) sorted h :2 2 h = list(map(int, input().split())) list(map(int, input().split())) h
h = list(map(int, input().split()))
print(sum(sorted(h)[:2]))