using System;
public class Test
{
public static Main() : void
{
def solve() : void {
def i = int.Parse(Console.ReadLine());
unless (i == 42) {
Console.WriteLine(i);
solve();
}
}
solve();
}
}
dXNpbmcgU3lzdGVtOwpwdWJsaWMgY2xhc3MgVGVzdAp7CglwdWJsaWMgc3RhdGljIE1haW4oKSA6IHZvaWQKCXsKCQlkZWYgc29sdmUoKSA6IHZvaWQgewoJCQlkZWYgaSA9IGludC5QYXJzZShDb25zb2xlLlJlYWRMaW5lKCkpOwoJCQl1bmxlc3MgKGkgPT0gNDIpIHsKCQkJCUNvbnNvbGUuV3JpdGVMaW5lKGkpOwoJCQkJc29sdmUoKTsKCQkJfQoJCX0KCQlzb2x2ZSgpOwoJfQp9