#include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; bitset<300001> dp, dp2; dp[150000] = 1; dp2[150000] = 1; for(int i = 1; i <= n; i++){ if(i & 1){ dp >>= i; dp |= dp << 2 * i; }else{ dp2 >>= i; dp2 <<= 2 * i; } } cout << (dp[150000] && dp2[150000] ? "Yes" : "No") << '\n'; }