#include<iostream> using namespace std; int main(){ int a; while(1){ cin >> a; if(a == 42){ break; } cout << a << "\n"; } return 0; }