#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define ll long long #define FOR(i,a,b) for(int i= (a); i<((int)b); ++i) #define RFOR(i,a) for(int i=(a); i >= 0; --i) #define FOE(i,a) for(auto i : a) #define ALL(c) (c).begin(), (c).end() #define RALL(c) (c).rbegin(), (c).rend() #define DUMP(x) cerr << #x << " = " << (x) << endl; #define SUM(x) std::accumulate(ALL(x), 0LL) #define EPS 1e-14 using namespace std; // nまでの素数のリストを作成(nを含む) vector getPrimeList(int n) { vector dp(n + 1, false); dp[0] = dp[1] = true; vector primeList; for (int i = 2; i < n + 1; ++i) { if (dp[i]) { continue; } primeList.push_back(i); for (int j = i; j < n + 1; j += i) { dp[j] = true; } } return primeList; } bool win(int n, const vector &primes) { FOE(p, primes) { if (n - p > 1) { if (!win(n - p, primes)) { return true; } } } return false; } int main(int argc, char *argv[]) { int N; cin >> N; vector p = getPrimeList(N); cout << (win(N, p) ? "Win" : "Lose") << endl; return 0; }