#include using namespace std; int main(){ int n;cin>>n; int ans = 0; for(int i = 1; n >= i*i; i++){ if(n%i == 0 && (i) == ((n/i)&(i))){ int size = 1; int nw = 1; while(nw