void afis() { int x; cin >> x; if(x != 0 ) afis(); cout << x << " "; }