#include <bits/stdc++.h>
int main(void) {
  int n, flag;
  scanf("%d", &n);
  for (int i = 1;; i <<= 1) {
    if (i == n) {
      flag = 1;
      break;
    } else if (i > n) {
      flag = 0;
      break;
    }
  }
  if (flag == 1)
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
