#include <stdio.h>
#include <math.h>
int main(void){
int n;
while(scanf("%d", &n)!=EOF)
{
float y = log(n)/log(2);
int x = log(n)/log(2);
if((x==y)||(n==1))
printf("Yes\n");
else
printf("No\n");
}
return 0;