#include constexpr int INF = 2147483647; constexpr long long int INF_LL = 9223372036854775807; constexpr int MOD = 1000000007; using namespace std; typedef long long int ll; typedef unsigned long long int ull; int main(int argc, char* argv[]) { int N; cin >> N; vector dp(N, 1); dp[N - 1] = 0; for (int i = N - 1; i >= 3; i--) { if (dp[i] == 0) { dp[i - 1] = dp[i - 2] = dp[i - 3] = 1; } else { if(i != 3)dp[i - 4] = 0; } } if ((N % 2 == 1 && !dp[0]) || (N % 2 == 0 && dp[0])) { cout << "Yes" << endl; } else { cout << "No" << endl; } }