using System; using System.Collections.Generic; using System.Linq; namespace No._07 { class Program { static List prime = new List(); static bool[,] memo; static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); memo = new bool[n + 1, 2]; memo[0, 0] = memo[0, 1] = true; memo[1, 0] = memo[1, 1] = true; primeCheck(n); if (judgmentCheck(n)) { Console.WriteLine("Win"); } else { Console.WriteLine("Lose"); } } static void primeCheck(int n) { bool[] data = Enumerable.Repeat(true, n + 1).ToArray(); for (int i = 4; i <= n; i += 2) data[i] = false; for (int i = 3; i <= (int)Math.Sqrt((double)n); i += 2) for (int j = 2; i * j <= n; j++) data[i * j] = false; for (int i = n; i >= 2; i--) if (data[i]) prime.Add(i); return; } static bool judgmentCheck(int n) { if (memo[n, 0]) return memo[n, 1]; memo[n, 0] = true; foreach (int a in prime) if (n >= a) if (!judgmentCheck(n - a)) return memo[n, 1] = true; return false; } } }