chiva13

Untitled

Aug 27th, 2014
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdio.h>
  3. #include <fstream>
  4. #include <string>
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. int n,m;
  10. cin>>n;
  11. while(n>5){n=n/2;m=n%2;}
  12. if((m%2)==1){cout<<"NO"<<endl;}
  13. else{cout<<"YES" <<endl;}
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment