#include<bits/stdc++.h>
using namespace std;
#define ll long long
const int maxn = 1e5 + 5;
const int inf=0x3f3f3f3f;
int f[maxn];
void f1()
{
f[1]=1;
f[2]=1;
f[3]=1;
int p=2,pp=3;
int tmp=p+pp;
while(tmp<=1e5)
{
f[tmp]=1;
p=pp,pp=tmp;
tmp=p+pp;
}
}
int main()
{
f1();
int n;
while(~scanf("%d",&n))
{
if(f[n]==0) printf("sjy win\n");//<<"sjy win"<<endl;
else printf("mwy win\n");//cout<<"mwy win"<<endl;
}
}