#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
if ((n % 400 == 0) || (n % 4 == 0 && n % 100 != 0)) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICBpbnQgbjsKICAgIGNpbiA+PiBuOwoKICAgIGlmICgobiAlIDQwMCA9PSAwKSB8fCAobiAlIDQgPT0gMCAmJiBuICUgMTAwICE9IDApKSB7CiAgICAgICAgY291dCA8PCAiWUVTIiA8PCBlbmRsOwogICAgfSBlbHNlIHsKICAgICAgICBjb3V0IDw8ICJOTyIgPDwgZW5kbDsKICAgIH0KCiAgICByZXR1cm4gMDsKfQo=