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 <stdio.h>
#include <string.h>
#include <algorithm>
using namespace std;
#define rep(i, n) for(int i=0; i<(int)(n); i++)

int dp[1<<20], z[5][5][5][5];
int n, f[5][5];
int s;

int rec(int at) {
    if(at==5) return dp[s>>5];
    if((s&(1<<at))==0) return rec(at+1);
    int ans=1<<30;
    rep(xe, 5) for(int ye=at; ye<5; ye++) {
        s ^= z[0][xe][at][ye];
        ans = min(ans, rec(at+1)+1);
        s ^= z[0][xe][at][ye];
    }
    return ans;
}

int main() {
    rep(xe, 5) rep(xs, xe+1) rep(ye, 5) rep(ys, ye+1) {
        for(int x=xs; x<=xe; x++) for(int y=ys; y<=ye; y++) {
            z[xs][xe][ys][ye] |= 1<<(x*5+y);
        }
    }
    rep(ix, 20) rep(d, 1<<ix) {
        int b=1<<ix|d, xe=ix/5, ye=ix%5;
        dp[b] = 1<<30;
        rep(xs, xe+1) rep(ys, ye+1) dp[b]=min(dp[b], dp[b^z[xs][xe][ys][ye]]+1);
    }
    for(;;) {
        scanf("%d", &n);
        if(n==0) return 0;
        memset(f, 0, sizeof(f));
        rep(i, n) rep(j, n) scanf("%d", f[i]+j);
        s = 0;
        rep(i, n) rep(j, n) s|=f[i][j]<<(i*5+j);
        int ans = n<5 ? dp[s] : rec(0);
        rep(i, ans) printf("myon");
        putchar('\n');
    }
}