x = int(input()) 
while x != 42
  printl(x)
  x = int(input())
end
