import std.stdio; import std.conv, std.array, std.algorithm, std.string; import std.math, std.random, std.range, std.datetime; import std.bigint; void main(){ int n = readln.chomp.to!int; int[] ps; bool[] flags; flags.length = 10009; foreach(i; 2 .. 109){ for(int j = 2 * i; j < 10009; j += i) flags[j] = 1; } foreach(j; 2 .. 10009){ if(!flags[j]) ps ~= j; } int[] xs; xs.length = 10009; xs[0] = 1; xs[1] = 1; for(int k = 0; k < 10009; k ++){ if(xs[k] != 0) continue; foreach(p; ps){ if(k - p < 0){ xs[k] = -1; break; } else if(xs[k - p] == -1){ xs[k] = 1; break; } } } string ans; if(xs[n] == 1) ans = "Win"; else ans = "Lose"; ans.writeln; }