#include using namespace std; int main() { long long num, count = 0, bis = 1; cin >> num; while(1) { long long los = num - bis; if (los > bis * 2) { bis = bis * 2; count++; } else { if (los % 2 == 0) { cout << count + 1 << endl; exit(0); } else { cout << count + 2 << endl; exit(0); } } } }