#include <bits/stdc++.h> using namespace std; int n; int main(){ while (scanf("%d", &n) == 1 && n != 42 ){ printf("%d\n", n); }return 0; }
UKE求助