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