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 <algorithm>
#include <queue>

using namespace std;

unsigned char memo[1<<20];
int mask[5][5][6][6];

void printS(int s){
  int tmp[5][5];
  fill(tmp[0], tmp[5], 0);
  for(int i=0;i<5;i++){
    for(int j=0;j<5;j++){
      tmp[i][j] = s >> (i*5+j) & 1;
    }
  }
  for(int i=0;i<5;i++){
    for(int j=0;j<5;j++){
      cout << tmp[i][j];
    }
    cout << endl;
  }
  cout << endl;
}

void init(){
  fill(memo, memo + (1<<20), -1);
  fill(mask[0][0][0], mask[5][0][0], 0);
  for(int i=0;i<5;i++){
    for(int j=0;j<5;j++){
      for(int h=1;i+h<=5;h++){
        for(int w=1;j+w<=5;w++){
          int tmp = (1 << w) - 1 << j;
          for(int k=0;k<h;k++){
            mask[i][j][h][w] |= tmp << (i+k) * 5;
          }
        }
      }
    }
  }
  queue<int> q;
  memo[0] = 0;
  q.push(0);
  while(!q.empty()){
    int u = q.front();
    q.pop();
    for(int i=0;i<4;i++){
      for(int j=0;j<5;j++){
        for(int h=1;i+h<=4;h++){
          for(int w=1;j+w<=5;w++){
            int v = u ^ mask[i][j][h][w];
            if(memo[v] > memo[u] + 1){
              memo[v] = memo[u] + 1;
              /*if((int)memo[v] == 2 && 0){
                cout << "cost = " << (int)memo[v] << endl;
                printS(v);
                }*/
              q.push(v);
            }
          }
        }
      }
    }
  }
}

const int INF = 1 << 28;

void rec(int t, int x, int cnt, int &res){
  if((t >> 20) == 0){
    //printS(t);
    //cout << (int)memo[t&(1<<20)-1] << endl;
    res = min(res, memo[t] + cnt);
  }
  if(x >= 5) return;
  for(int i=0;i<5;i++){
    for(int j=x;j<5;j++){
      int nt = t ^ mask[i][x][5-i][j-x+1];
      if(!(nt&1<<20+x)) rec(nt, x+1, cnt+1, res);
    }
  }
  if(!(t&1<<20+x)) rec(t, x+1, cnt, res);
}

int solve(int s){
  int cnt = 0;
  for(int i=0;i<5;i++){
    if(s >> (20 + i) & 1) cnt++;
  }
  int res = memo[s&(1<<20)-1] + min(cnt, 6-cnt);
  //cout << res << ' ';
  rec(s, 0, 0, res);
  //cout << res << endl;
  return res;
}

int main(){
  init();
  int n;
  while(cin >> n && n){
    int m = 0;
    for(int i=0;i<n;i++){
      int t = 0, c;
      for(int j=0;j<n;j++){
        cin >> c;
        t |= c << j;
      }
      m |= t << i * 5;
    }
    int ans = n < 5 ? memo[m] : solve(m);
    for(int i=0;i<ans;i++){
      cout << "myon";
    }
    cout << endl;
  }
}