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: 39ms
Memory: 5664kB
Author: 2018212212125
In contest: 1292

#include<cstdio>
#include<cstring>
#include<cmath>
#include<map>
#include<set>
#include<string>
#include<algorithm>
#include<iostream>
#define ll long long 
using namespace std;
const int maxn = 1e6 + 10;
const int inf = 0x3f3f3f3f;
int  n, m, k, N, t;
int a[maxn];
int main()
{
	memset(a, 0, sizeof a);
	ll x = 1, y = 1, c;
	a[1] = 1;
	c = x + y;
	while (c <= maxn - 10) 
	{
		a[c] = 1;
		x = y;
		y = c;
		c = x + y;
	}
	while (scanf("%d", &n) != EOF) 
	{
		if (a[n] == 1)
			printf("mwy win\n");
		else
			printf("sjy win\n");

	}

}