import java.io.*; class uruu{ public static void main(String[] args) throws IOException { BufferedReader br= new BufferedReader(new InputStreamReader(System.in)); String str=br.readLine(); int num=Integer.parseInt(str); if(num%4==0&&num%100 !=0){ System.out.println("Yes"); } else if(num%400==0){ System.out.println("Yes"); } else{ System.out.println("No"); } } }