#include<iostream>
#include<cstdio>
#include<cstring>
#include<string>
#include<algorithm>
using namespace std;
#define maxn 25
int main()
{ char ch[maxn][maxn]; int n, m,all,length,res,cnt=0; scanf("%d%d", &n, &m); all = n * m; length = n + m; for (int i = 0; i < n; i++) { getchar(); for (int j = 0; j < m; j++) { scanf("%c", &ch[i][j]); if (ch[i][j] == '#') { cnt++; } } } res = all - length - cnt; //cout << all << length << cnt << res; if (res % 2 == 1) { cout << "niumei" << endl; } else { cout << "niuniu" << endl; } return 0;
}