using System; using System.Linq; using System.Collections.Generic; class No7 { static void Main() { var N = Int32.Parse(Console.ReadLine()); var list = new List(); var n = 0; for (int i = 2; i < N-1; ++i) { var max = Math.Sqrt(i+1); n = i; for (int j = 2; j <= max; j++) { if (i % j == 0) { n = 0; break; } } if (n != 0) list.Add(n) ; } var winList = new bool[N+1]; for (int i=4;i<=N;++i) { if (winList[i]) continue; for(int j = 0; j