#include<bits/stdc++.h>
using namespace std;
#define N 100010
int n;
int f[N], vis[N];
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr), cout.tie(nullptr);
f[0] = 1, f[1] = 1;
vis[1] = 1;
for (int i = 2; i <= 45; ++i) {
f[i] = f[i - 1] + f[i - 2];
if (f[i] > N) break;
vis[f[i]] = 1;
}
while (cin >> n) {
cout << (vis[n] ? "mwy win" : "sjy win") << endl;
}
return 0;
}