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