#include #include #include using namespace std; using LL = long long; int main() { int N; cin >> N; vector P; 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 * 2; j <= N; j += i) { P_[j] = false; } 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 && !WL[i - p]) { WL[i] = true; break; } } } cout << (WL[N] ? "Win" : "Lose") << endl; }