cppOlimp/binarnie_cisla.cpp
2022-02-07 21:33:05 +02:00

19 lines
312 B
C++

//acmp.ru 0692 binarnie_cisla.cpp 8%
#include <stdio.h>
#include <math.h>
int main(){
freopen("INPUT.TXT", "r", stdin);
freopen("OUTPUT.TXT", "w", stdout);
unsigned int N;
scanf("%i", &N);
for (int i = 0; i <= 32; i++){
if(log2(N) == i){
printf("YES");
return 0;
}
}
printf("NO");
return 0;
}