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(4%num==0&&100%num !=0){ System.out.println("Yes"); } else if(num%400==0){ System.out.println("Yes"); } else{ System.out.println("No"); } } }