#include #include #include using namespace std; using LL = long long; int main() { int N; cin >> N; // bool P_[N + 1]; for (bool &i: P_) i = true; P_[0] = P_[1] = false; for (int i = 2; i <= sqrt(N); i++) { if (P_[i]) { for (int j = i + i; j <= N; j += i) { P_[j] = false; } } } vector P; for (int i = 2; i <= N; i++) { if (P_[i]) P.push_back(i); } // bool WL[N + 2]; WL[0] = WL[1] = true; WL[2] = WL[3] = false; for (int i = 4; i <= N; i++) { WL[i] = false; for (int p: P) { if (p > i) break; if (!WL[i - p]) { WL[i] = true; break; } } } cout << (WL[N] ? "Win" : "Lose") << endl; }