#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
    int X;
    cin >> X;
    if(X == 0 || X == 4 || X == 10) {
        cout << "Yes" << endl;
    }
    else {
        cout << "No" << endl;
    }
}