Problem: In 2012, human beings have been exposed to fierce onslaught of unidentified mysterious extra-terrestrial creatures. We have exhaused because of the long war and can't regist against them any longer. Only you, an excellent wizard, can save us. Yes, it's time to stand up!

The enemies are dispatched to the earth with being aligned like an n * n square. Appearently some of them have already lost their fighting capabilities for some unexpected reason. You have invented a highest grade magic spell 'MYON' to defeat them all. An attack of this magic covers any rectangles (which is parallel to axis). Once you cast a spell "myon," then all the enemies which the magic covers will lose their fighting capabilities because of tremendous power of the magic. However, the magic seems to activate enemies' self-repairing circuit. Therefore if any enemy which have already lost its fighting capability is exposed to the magic, the enemy repossesses its fighting capability. You will win the war when all the enemies will lose their fighting capabilities.

Let me show an example. An array of enemies below have dispatched:


1 1 1 1 1
1 0 0 0 1
1 0 1 0 1
1 0 0 0 1
1 1 1 1 1


Here, '0' means an enemy that doesn't possess fighting capability, and '1' means an enemy that possesses. First, you cast a spell "myon" with covering all the enemies, which results in;


0 0 0 0 0
0 1 1 1 0
0 1 0 1 0
0 1 1 1 0
0 0 0 0 0


Next, cast once again with covering central 3 * 3 enemies.


0 0 0 0 0
0 0 0 0 0
0 0 1 0 0
0 0 0 0 0
0 0 0 0 0


Now you can defeat them all by casting a spell covers remaining one. Therefore you can cast "myonmyonmyon," which is the shortest spell for this case.

You are given the information of the array. Please write a program that generates the shortest spell that can defeat them all.

Constraints

* 1 ≤ n ≤ 5

Input

The first line of each test case has an integer n. Following n lines are information of an array of enemies. The format is same as described in the problem statement.

Input terminates when n = 0. You may assume that one or more enemy have fighting capability.

Output

For each dataset, output the shortest spell.

Example

Input

5
1 1 1 1 1
1 0 0 0 1
1 0 1 0 1
1 0 0 0 1
1 1 1 1 1
3
1 1 1
1 1 1
1 1 1
5
1 1 1 1 0
1 1 1 1 0
1 0 0 0 1
0 1 1 1 1
0 1 1 1 1
0


Output

myonmyonmyon
myon
myonmyon

Solution (in CPP):

Solution:
#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cmath>
#include<cstring>
#include<vector>
#include<sstream>
#include<queue>
#include<algorithm>
#include<cassert>

using namespace std;

#define rep(i,n) for(int i=0;i<n;i++)
#define fr(i,c) for(__typeof(c.begin()) i=c.begin();i!=c.end();i++)
#define pb push_back
#define mp make_pair
void pv(int bit,int h,int w){
	rep(i,h)rep(j,w)cerr<<!!(bit&1<<i*w+j)<<(j==w-1?"\n":" ");
}

unsigned char cost[1<<20];
int mask[5][5][6][6];
void gen(){
	memset(cost,-1,sizeof(cost));
	cost[0]=0;
	rep(i,5)rep(j,5)for(int h=1;h<=5-i;h++)for(int w=1;w<=5-j;w++){
		int m=(1<<w)-1;
		rep(k,h)mask[i][j][h][w]^=m<<(i+k)*5+j;
	}
	queue<int> Q; Q.push(0); int cnt=0;
	while(!Q.empty()){
		int c=Q.front(),cc=cost[c]; Q.pop();
		rep(i,4)rep(j,5)for(int h=1;h<=4-i;h++)for(int w=1;w<=5-j;w++){
			int nc=c^mask[i][j][h][w];
			if(cost[nc]>cc+1)cost[nc]=cc+1,Q.push(nc);
		}
	}
}
int lim;
int getcost(int c){
	int ret=cost[c&(1<<20)-1],bit=0;
	for(c>>=20;c;c&=c-1)bit++;
	return ret+min(bit,6-bit);
}
void rec(int c,int x,int cnt){
	if(c>>20==0)lim=min(lim,cost[c]+cnt);
	if(x>=5)return;
	
	rep(i,5)for(int j=x;j<5;j++){
		int nc=c^mask[i][x][5-i][j-x+1];
		if(!(nc&1<<20+x))rec(nc,x+1,cnt+1);
	}
	if(!(c&1<<20+x))rec(c,x+1,cnt);
}
int solve(int c){
	lim=getcost(c);
	rec(c,0,0);
	return lim;
}
int main(){
	gen();
	
	int n,ans;
	while(cin>>n,n){
		int c=0,t;
		rep(i,n)rep(j,n){
			cin>>t;
			if(t)c^=1<<i*5+j;
		}
		ans=n<5?cost[c]:solve(c);
		rep(i,ans)cout<<"myon"; cout<<endl;
	}
	return 0;
}