numero = 1
while True:
num = int(input('Ingrese un numero:'))
if num == 1:
break
else:
numero *= num
print('Resultado: %d' %numero)