#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    cin>>n;
    if(n%4||(n%100==0&&n%400)) cout<<"no";
    else cout<<"yes";
    return 0;
}

闰年定义居然不是我想的那样
哼qwq