using System; using System.Collections.Generic; using System.Linq; using System.Text; class Program { static void Main() { //a以下の素数の数==sosuの数//b==素数なのか調べたい数 int a = int.Parse(Console.ReadLine()), b = 3; List sosu = new List(); sosu.Add(2); while (b<=a)//素数の数を調べる { if (b % 2 == 0)//偶数は素数ではないのでスキップする { b++; continue; } else { bool sosu_yes = true; for(int i = 0; i < sosu.Count; i++)//登録されている素数の中で割り切れる数があるのかを調べる { if (b % sosu[i] == 0)//割り切れた場合素数ではないので処理を中断し、次に向かう { sosu_yes = false; break; } else if ((b < (sosu[i] * 2)) || (MathF.Sqrt(b) < sosu[i]))//bの1/2の数以下で割れなければ整数で割れないので中断する//また√bより大きい素数ではbは割り切れる事はないので中断する break; } if(sosu_yes)//持っている素数では割り切れなかった { sosu.Add(b);//お前も素数にならないか } } b++; } if (a % 3 == 0 && ((sosu[sosu.Count - 1] - sosu[sosu.Count - 2]) < 11)) Console.WriteLine("Lose"); else Console.WriteLine("Win"); //Console.WriteLine(sosu[sosu.Count - 1] - sosu[sosu.Count - 2]); //Console.WriteLine(sosu.Count); } }