import java.util.Scanner; public class Uruudoshi { public static void main(String[] args) { Scanner s = new Scanner(System.in); int N = s.nextInt(); s.close(); if(N % 4 == 0 &&( N % 100 != 0 || N % 400 == 0)){ System.out.println("Yes"); }else{ System.out.println("No"); } } }