print(sum(sorted([int(time) for time in input().split()])[:2])) int(time) for time in input().split() for time in input().split() time input().split() ().split () input split for time in input().split() int(time) int time print(sum(sorted([int(time) for time in input().split()])[:2])) print sum(sorted([int(time) for time in input().split()])[:2]) sum sorted([int(time) for time in input().split()])[:2] ([int(time) for time in input().split()]) sorted [int(time) for time in input().split()] :2 2
print(sum(sorted([int(time) for time in input().split()])[:2]))