Чернов Дмитрий Дмитриевич
08.01.2020 06:52 (87 д. 20:44) [3022353]
n = int(input()) s = 0 while (s < 1000) and (n > 0): s += int(input()) n -= 1 print(s)