#include <stdio.h>
int main(void) {
int x;
for(
;
scanf("%d",&x
) > 0 && x
!= 42; );
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7IAoJaW50IHg7Cglmb3IoCiAgICAgIDsgCiAgICAgIHNjYW5mKCIlZCIsJngpID4gMCAmJiB4ICE9IDQyOwogICAgICBwcmludGYoIiVkXG4iLCB4KQogICAgKTsKCXJldHVybiAwOwp9