#include<bits/stdc++.h> using namespace std; int main(){ int a; while(a!=42){ cin>>a; cout<<a<<endl; } return 0; }