//package easy; // it should be hidden as compiler can't find the package called easy.
import java.util.Scanner;
class Life_universeandEverything //it shouldn't be public as mentioned by @betlista
{
public static void main
(String args
[]) {
//System.out.println("Enter a number"); // hide it as it doesn't follow o/p format.
//int a[]=new int[1000];//you don't know number of tests, better don't take an array.
int n;
Scanner s
=new Scanner
(System.
in); while((n=s.nextInt())!=42)
System.
out.
println(n
); // o/p until you don't encounter integer 42. }
}
Ly9wYWNrYWdlIGVhc3k7IC8vIGl0IHNob3VsZCBiZSBoaWRkZW4gYXMgY29tcGlsZXIgY2FuJ3QgZmluZCB0aGUgcGFja2FnZSBjYWxsZWQgZWFzeS4KICAgIGltcG9ydCBqYXZhLnV0aWwuU2Nhbm5lcjsKCiAgICBjbGFzcyBMaWZlX3VuaXZlcnNlYW5kRXZlcnl0aGluZyAvL2l0IHNob3VsZG4ndCBiZSBwdWJsaWMgYXMgbWVudGlvbmVkIGJ5IEBiZXRsaXN0YQogICAgewogICAgICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZyBhcmdzW10pCiAgICAgICAgeyAgIAogICAgICAgICAgICAvL1N5c3RlbS5vdXQucHJpbnRsbigiRW50ZXIgYSBudW1iZXIiKTsgIC8vIGhpZGUgaXQgYXMgaXQgZG9lc24ndCBmb2xsb3cgby9wIGZvcm1hdC4KICAgICAgICAgICAgLy9pbnQgYVtdPW5ldyBpbnRbMTAwMF07Ly95b3UgZG9uJ3Qga25vdyBudW1iZXIgb2YgdGVzdHMsIGJldHRlciBkb24ndCB0YWtlIGFuIGFycmF5LgogICAgICAgICAgICBpbnQgbjsKICAgICAgICAgICAgU2Nhbm5lciBzPW5ldyBTY2FubmVyKFN5c3RlbS5pbik7CiAgICAgICAgICAgIHdoaWxlKChuPXMubmV4dEludCgpKSE9NDIpICAKICAgICAgICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKG4pOyAvLyBvL3AgdW50aWwgeW91IGRvbid0IGVuY291bnRlciBpbnRlZ2VyIDQyLgogICAgICAgIH0KICAgIH0=