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