#include<stdio.h>

int main(void){
	
	int N,k,a[100000],amari,g,tmp;
	
	g=1;
	
	scanf("%d",&N);
	
	for(k=0;k<=N-1;k++){
		
		if(k<N-1){
			scanf("%d ",&a[k]);}
		else{
			scanf("%d",&a[k]);
		}
		
	}
	
	for(k=0;k<=N-2;k++){
		amari = (a[k]*a[k+1])%4;
		for(l=N-1;l>=1;l--){
			
			if(amari!=0){
				tmp=a[k];
				a[k]=a[l];
				a[l]=tmp;
			}
			
		}
	}
	
	
	
	
	
	for(k=0;k<=N-2;k++){
		amari = (a[k]*a[k+1])%4;
		if(amari!=0){
			g=0;
		}
	}
	
	if(g==1){
		printf("Yes\n");
	}else{
		printf("No\n");
	}
	
	for(k=0;k<=N-1;k++){
		
		printf("%d ",a[k]);
	}
	
	return 0;
}
