#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, M;
  cin >> N, M;
  while (N > M) {
    int M = 0;
    if (N - (N - M) != M) {
      break;
    }
    M = N - (N - M);
    M++;
  }
  if (N = M) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
