#include using namespace std; void fast_io() { cin.tie(nullptr); ios_base::sync_with_stdio(false); } int main() { fast_io(); int p; cin >> p; cout << (p == 2 || p % 4 == 1 ? "Yes" : "No") << endl; }