//
// Created by liuhao on 2023/7/28.
//

#include <bits/stdc++.h>

using namespace std;
#define int long long

signed main() {
    int p;
    cin>>p;
    if((p-1)%4!=0&&p!=2)
    {
        cout<<"No"<<endl;
        return 0;

    }
    else
    {
        cout<<"Yes"<<endl;
        return 0;
    }
}