l = [int(x) for x in input().split()]
dist = sorted(l)
print(sum(dist[0:2])) 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 l = [int(x) for x in input().split()] l [int(x) for x in input().split()] dist = sorted(l) dist sorted(l) sorted l print(sum(dist[0:2])) print sum(dist[0:2]) sum dist[0:2] dist 0:2 0 2 l = [int(x) for x in input().split()] [int(x) for x in input().split()] l dist = sorted(l) sorted(l) dist
l = [int(x) for x in input().split()]
dist = sorted(l)
print(sum(dist[0:2]))