using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Lecture3 { class Program { static void Main(string[] args) { string line = Console.ReadLine(); int N = int.Parse(line); if (N % 4 == 0 && N % 100 != 0 || N % 400 == 0) { Console.WriteLine("Yes"); } else { Console.WriteLine("No"); } } } }