/*
TASK BOOKS
LANG C++
*/
#include<iostream.h>
using namespace std;
int main () {
    
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	int n;
    int ch[31];
    int nech[31];
    int ed[31];
    int des[31];
    int stot[31];
    int hil[31];
    int k[31];
    int a1=1;
    int b1=1;
    int maxtomin[31];
    cin>>n;
    for(int i=1;i<=31;i=i+1){
		nech[i]=0;}
	for(int i=1;i<=31;i=i+1){
		ch[i]=0;}
    for(int i=1;i<=n;i=i+1){
		cin>>k[i];}
		cout<<"22 33 45 23";
		//if(k[i]<10){ed[i]=k[i];des[i]==0;stot[i]==0;hil[i]==0;}
		//if(100>k[i]>9){des[i]=k[i]/10;ed[i]=k[i]%10;stot[i]==0;hil[i]==0;}
		
	/*	
		
		
		
		if((k[i]<1000)&&(k[i]>99)){
			ed[i]=k[i]%10;
			des[i]=(k[i]%100-k[i]%10)/10;
			hil[i]=(k[i]%10000-k[i]%1000-k[i]%100-k[i]%10)/10;
			stot[i]=(k[i]%1000-k[i]%100-k[i]%10)/100;}
		
		
		if(10000>k[i]&&k[i]>999){
			ed[i]=k[i]%10;
			des[i]=(k[i]%100-k[i]%10)/10;
			des[i]=(k[i]%100-k[i]%10)/10;
			stot[i]=(k[i]%1000-k[i]%100-k[i]%10)/100;
			hil[i]=(k[i]%10000-k[i]%1000-k[i]%100-k[i]%10)/1000;}
		
*/		
//		
//		if((ed[i]+des[i]+stot[i]+hil[i])%2==0){ch[a1]=k[i];a1=a1+1;cout<<k[i];}else{nech[b1]=k[i];b1=b1+1;}}
//	    for(int i=1;i<=31;i=i+1){if(ed[i]==0){ed[i]=1;}if(des[i]==0){des[i]=1;}if(ed[i]==0){stot[i]=1;}if(des[i]==0){hil[i]=1;}}

	
	
	
	
	
	
	
	
	
	
	
	cout<<"\n";
									
	return 0;
}
