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