#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
signed main() {
const int N = 7;
vector<int> a(N), res;
for(auto &i: a){
cin >> i;
if(i & 1) res.push_back(i);
}
for(auto &i: res) cout << i << " ";
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
signed main() {
const int N = 7;
vector<int> a(N), res;
for(auto &i: a){
cin >> i;
if(i & 1) res.push_back(i);
}
for(auto &i: res) cout << i << " ";
}