// // main.cpp // Q25 // // Created by AkihiroKOBAYASHI on 7/12/15. // Copyright (c) 2015 Akhr5884. All rights reserved. // #include int kazu[10001] = {0}; int sosu[10001] = {0}; int result[30001] = {0}; int main(int argc, const char * argv[]) { int i, j, k, n; k = 0; std::cin >> n; for(i = 2; i < 10001; i++) { kazu[i] = 1; } for(i = 2; i < 10001; i++) { if(kazu[i] == 1) { sosu[k] = i; k++; for(j=i; i*j < 10001; j++) { kazu[i*j] = 0; } } } for(i = 2; i < 10001; i++) { if(result[i] == 0) { for(j = 0; j < k; j++) { result[i + sosu[j]] = 1; } } } if(result[n]) { std::cout << "Win" << "\n"; } else { std::cout << "Lose" << "\n"; } return 0; }