import java.util.Scanner; class Sample { public static void main(String args[]) { Scanner scanner = new Scanner(System.in); String input = scanner.nextLine(); int n =Integer.parseInt(input); if(n%400==0){System.out.println("Yes");} else if(n%100==0){System.out.println("No");} else if(n%4==0){System.out.println("Yes");} else{System.out.println("No");} } }