li = [int(x) for x in input().split()]
li.sort()
print(li[0] + li[1]) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x li = [int(x) for x in input().split()] li [int(x) for x in input().split()] li.sort() li.sort li sort print(li[0] + li[1]) print li[0] + li[1] li[0] li 0 li[1] li 1 li = [int(x) for x in input().split()] [int(x) for x in input().split()] li
li = [int(x) for x in input().split()]
li.sort()
print(li[0] + li[1])
