#include<iostream> int main() { int N,a[100],i=0; scanf("%d",&N); for(;i<=N-1;N++) { scanf("%d",a[i]); } while(1) { for(;i<=N-1;N++) { if(a[i]%2==0) { printf("%d",a[i]); } else if(a[i%2]!=0) { printf("%d",a[i]); } } } return 0; }