#include using namespace std; using ll = long long; #define itn int #define rep2(i,a,n) for(int i = (a);i < (n);i++) #define rep(i,n) rep2(i,0,n) using P = pair; int main(void){ int n; cin >> n; if((n % 100 == 0 && n % 4 == 0 && n % 400 == 0))cout << "Yes" << endl; else if(n % 100 != 0 && n % 4 == 0)cout << "Yes" << endl; else cout << "No" << endl; }