à partir de SYS Import stdin
from sys import stdin
for line in stdin:
n = int(line)
if n == 42:
break
print(n)
Clumsy Crab
from sys import stdin
for line in stdin:
n = int(line)
if n == 42:
break
print(n)