l=[int(x) for x in input().rstrip().split()]
l.sort()
print(sum(l[:2])) int(x) for x in input().rstrip().split() for x in input().rstrip().split() x input().rstrip().split() ().rstrip().split ().rstrip() ().rstrip () input rstrip split for x in input().rstrip().split() int(x) int x l=[int(x) for x in input().rstrip().split()] l [int(x) for x in input().rstrip().split()] l.sort() l.sort l sort print(sum(l[:2])) print sum(l[:2]) sum l[:2] l :2 2 l=[int(x) for x in input().rstrip().split()] [int(x) for x in input().rstrip().split()] l
l=[int(x) for x in input().rstrip().split()]
l.sort()
print(sum(l[:2]))