#include<bits/stdc++.h> using namespace std; int main() { std::ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n,m,k[1000000]; cin>>n>>m; for(int i=1;i<=m;i++){ cin>>k[i]; if(k[i]%2!=1){ cout<<k[i]<<endl; } } return 0; }