#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin >> n; int odd = (n+1)/2; int even = n/2; if (odd%2) { cout << "No" << endl; return 0; } long long s = even * (even+1)/2; if (s%2){ cout << "No" << endl; } else { cout << "Yes" << endl; } return 0; }