#include <iostream>
#include <vector>
using namespace std;
int main()
{
int n;
cin >> n;
vector <int> a(n);
int k;
for (int i = 0; i < n; i++) {
k = rand();
a.push_back(k);
a[i] = k;
}
vector <int> l;
if (k % 2 != 0) {
l.push_back(k);
for (int i = 0; i < l.size(); i++) {
cout << l[i] << " ";
return 0;
#include <iostream>
#include <vector>
using namespace std;
int main()
{
int n;
cin >> n;
vector <int> a(n);
int k;
for (int i = 0; i < n; i++) {
k = rand();
a.push_back(k);
a[i] = k;
}
vector <int> l;
for (int i = 0; i < n; i++) {
if (k % 2 != 0) {
l.push_back(k);
}
}
for (int i = 0; i < l.size(); i++) {
cout << l[i] << " ";
}
return 0;
}