#include int main(void) { unsigned int num = 0; std::cin >> num; int cnt = 0; while(true) { num /= 2; if(num % 2 != 0) { num--; } cnt++; if(num <= 1) { break; } } std::cout << cnt << std::endl; return 0; }