#include <iostream>
using namespace std; // consider removing this line in serious projects
int main() {
int intNum = 0;
cin >> intNum;
while (intNum != 42) {
cout << intNum << "\n";
cin >> intNum;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOyAvLyBjb25zaWRlciByZW1vdmluZyB0aGlzIGxpbmUgaW4gc2VyaW91cyBwcm9qZWN0cwoKaW50IG1haW4oKSB7CglpbnQgaW50TnVtID0gMDsKCQoJY2luID4+IGludE51bTsKCXdoaWxlIChpbnROdW0gIT0gNDIpIHsKCQljb3V0IDw8IGludE51bSA8PCAiXG4iOwoJCWNpbiA+PiBpbnROdW07Cgl9CgoJcmV0dXJuIDA7Cn0=