//整百年:若能被400整除是闰年(如:1600,2000)

//非整百年:若能被4整除但不能被100整除是闰年如(如:2016,2020)

int main(){
    int year = 0;
    scanf("%d",&year);
    if((year%400==0)||(year%4==0 && year%100!=0))
        printf("yes\n");
    else
        printf("no\n");
    return 0;
}