Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdio.h>
- #include <fstream>
- #include <string>
- using namespace std;
- int main()
- {
- int n,m;
- cin>>n;
- while(n>5){n=n/2;m=n%2;}
- if((m%2)==1){cout<<"NO"<<endl;}
- else{cout<<"YES" <<endl;}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment