#include <bits/stdc++.h>
using namespace std;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);

    long long N; cin >> N;
    long long all = N*(N+1)/2;
    long long even = (N/2)*(N/2+1)/2*2,odd = all-even;
    if(even%4 || odd%2) cout << "No" << endl;
    else cout << "Yes" << endl;

}