#include using namespace std; int main(){ int N; cin>>N; int cokkie=1,ans=0; while(cokkie!=N){ if (cokkie*2