using System; public class Hello { static void Main() { var n = int.Parse(Console.ReadLine().Trim()); getAns(n); } static void getAns(int n) { if (n <= 6) { Console.WriteLine("No"); return; } if (n == 7) { Console.WriteLine("Yes"); return; } if (n % 2 == 0) { var evensum = (n / 2) * (n / 2 + 1); if (evensum % 2 != 0) { Console.WriteLine("No");return; } var oddsum = n *(n + 1)-evensum; Console.WriteLine( oddsum % 2 == 0? "Yes":"No" ); return; } else { var oddcount = (n + 1) / 2; if (oddcount % 2 != 0) { Console.WriteLine("No"); return; } Console.WriteLine((n - 1) % 4 == 0 ? "Yes" : "No"); return; } } }