#include using namespace std; int main() { int n; cin >> n; vector p(n + 1); for (int i = 0;i <= n;i++) { p[i] = -1; } for (int i = 2;i <= n;i++) { if (p[i] == -1) { p[i] = 1; for (int j = 2;j*i <= n;j++) { p[j*i] = 0; } } } vector win(n + 1);//iで自分に番が回ってきたときに勝つならtrue win[0] = true; win[1] = true; for (int i = 2;i <= n;i++) { bool b = false; for (int j = 2;j <= i;j++) { if (p[j]&&!win[i-j]) { //次の番で相手が勝てるとき、自分は負ける b = true; break; } } win[i] = b; //cout << i << "," << b << endl; } cout << (win[n] ? "Win" : "Lose") << endl; return 0; }