#include using namespace std; #define FOR(i, a, b) for(int i = (a); i < (int)(b); ++i) #define rep(i, n) FOR(i, 0, n) #define ALL(v) v.begin(), v.end() #define REV(v) v.rbegin(), v.rend() #define MEMSET(v, s) memset(v, s, sizeof(v)) #define UNIQUE(v) (v).erase(unique(ALL(v)), (v).end()) #define MP make_pair #define MT make_tuple int arr[10010]; int dp[10001]; int N, t, s = 0; void Eratosthenes(){ for(int i = 0; i < N; i++){ arr[i] = 1; } for(int i = 2; i < sqrt(N); i++){ if(arr[i]){ for(int j = 0; i * (j + 2) < N; j++){ arr[i *(j + 2)] = 0; } } } } int main(){ cin >> N; Eratosthenes(); dp[0] = dp[1] = 1; FOR(i, 2, N + 1){ FOR(j, 2, N) { if(j > i) break; if(dp[i - j]==0 && arr[j]){ dp[i] = 1; break; } } } cout << dp[N] << endl; string s = dp[N]?"Win":"Lose"; cout << s << endl; }