Start: Jul, 03, 2019 08:38:00
2019年度暑期短学期第七天 助教场
End: Jul, 04, 2019 23:00:00
Time elapsed:
Time remaining:

Problem_ID: E
Result: Accepted
Time: 36ms
Memory: 79884kB
Author: 2018212212127
In contest: 1292

#include<iostream>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<cstdio>
using namespace std;
typedef long long ll;
const int inf=0x3f3f3f3f;
const int maxn=1e7+100;
int a[maxn],b[maxn];
void fobo(int n){
	a[0]=1;
	a[1]=2;
	b[1]=1;
	b[2]=1;
	for(int i=2;i<=n;i++){
		a[i]=a[i-1]+a[i-2];
		b[a[i]]=1;
	}
}
int main(){
	fobo(25);
	int n;
	while(~scanf("%d",&n)){
		if(b[n]) printf("mwy win\n");
		else printf("sjy win\n");
	}
}