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