#include<iostream> using namespace std; int main() { int n,a[100],i,p,x; cout<<"n="; cin>>n; for(i=1;i<=n;i++) cin>>a[i]; for(i=1;i<=n;i++) { x=0; p=1; while(a[i]>0) { if(a[i]%10%2==0) { x=x+p*(a[i]%10); p=p*10; } a[i]=a[i]/10; } a[i]=x; } for(i=1;i<=n;i++) cout<<a[i]<<" "; return 0; }