#include <bits/stdc++.h>
using namespace std;
int main(void)
{

    vector<int>v={1,2,3,4,5,6,7,8,9};
    auto it=v.begin();
    while (it!=v.end()) {
        if (*it%2==0)it=v.erase(it);
        else it++;
        }
    for(auto &x:v)cout<<x<<endl;

    return 0;
}