#include<bits/stdc++.h> using namespace std; int main() { int m[105]; int n,t,cnt=0; cin>>n; for(int i=0 ; i<n ; i++){ cin>>m[i]; } for(int i=0 ; i<n ; i++){ bool tf=true; if(m[i]%2==0) { cnt=0; t=m[i]; while(t!=0){ cnt++; t/=10; } if(cnt%2==0){ t=m[i]; while(t!=0) { if((t%2)%2!=0) { tf=false; break; } t/=10; } if(tf){ cout<<m[i]<<endl; } }else{ tf=false; } }else{ tf=false; } } return 0; } /************************************************************** Problem: 1397 User: lzc Language: C++ Result: Accepted Time:15 ms Memory:2072 kb ****************************************************************/