Протасов Сергей
18.10.2019 22:53 (6 д. 12:45) [2727983]
s = 0 for _ in range(0, int(input())): s += int(input()) if s >= 1000: print(s) exit()