#include <bits/stdc++.h>
int main() {
  int n, i = 0, k;
  scanf("%d", &n);
  if (n == 1)
    printf("YES\n");
  else {
    k = n;
    while (k != 1) {
      k = k / 2;
      i++;
    }
    if (pow(2, i) == n)
      printf("YES\n");
    else
      printf("NO\n");
  }
  return 0;
}
