Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

RGB7310 - Хоёрын зэрэгт

Өгөгдсөн тоо хоёрын зэрэгт мөн бол YES үгүй бол NO гэж хэвлэ.

Input

Бүхэл тоо өгөгдөнө.

Output

2-ын зэрэгт бол YES үгүй бол NO.

Example

Input:
16

Output:
YES

Нэмсэн:Bataa
Огноо:2013-01-11
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:ADA95 ASM32 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE

hide comments
2023-02-17 01:06:19
#include <stdio.h>

int main(void) {
int n,i;
scanf("%d",&n);
for(;n%2==0;n/=2)
i=n/2;
if(i==1)
printf("YES");
else
printf("NO");
}
sodolz
2023-02-11 04:24:17
munkhjin neger
2023-02-11 04:23:22
siu
2022-12-27 05:28:50
#include<stdio.h>
#include<math.h>

int main()
{
int n;
scanf("%d",&n);
double i = log2(n);
if(n > 0)
{
if( ceil(i) == floor(i))
printf("YES");
else
printf("NO");
}
while(n == 0)
{
printf("Ta n > 0 toogoo oruulna uu: ");
scanf("%f",&n);
}
}
2022-12-14 14:12:32
#include<iostream>
using namespace std;
int main()
{
int a ;
cin >> a ;
while ( a>1 )
{
if ( a%2==0 )
a=a/2 ;
else
a=a/10 ;
}
if ( a==1 )
cout << "YES" ;
else
cout << "NO" ;
return 0;
}
2022-11-22 12:42:32
otgontengeriig al
2022-11-17 06:33:56
yugne nuhumeen
2022-11-17 06:31:40
suvdaa bainaa goy comment ogoorei sugudaa
2022-11-17 06:30:56
seufjuhfuiwfnvuivbnhslovevjshnvjshgsugvhyoubuisdbvsie
2022-10-18 02:57:18
int nu1,b=0,c=1;

Scanner scan = new Scanner (System.in);
nu1=scan.nextInt();
for(int d=0;d<nu1;d++ )
{
c=c*2;
if(nu1==c)
{
b++;
}
}
if(b==1)
{
System.out.print("Yes");
}
else
{
System.out.print("No");
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.