import java.util.Scanner;
public class t4 {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int year = sc.nextInt();
sc.close();
if (year % 400 == 0) {
System.out.println("yes");
} else if (year % 4 == 0 && year % 100 != 0) {
System.out.println("yes");
} else {
System.out.println("no");
}
}
}