# Python 3.X
print('№1')
l = []
while True:
i = int(input())
if i == 0:
break
else:
l.append(i)
print('Вы ввели:', ', '.join(map(str, l)))
print('№2')
from random import randint
from functools import reduce
print(reduce(lambda x, y: x + y if y % 2 == 0 else x, [randint(1, 51) for _ in range(10)]))