#include<iostream>
using namespace std;
bool solve(int year){
bool flag=false;
if((year%4==0 && year%100!=0)||(year%400==0)){
flag=true;
}
return flag;
}
int main(){
int year;
cin>>year;
bool flag=solve(year);
if(flag==false){
cout<<"no";
}else{
cout<<"yes";
}
return 0;
}