#include <iostream>
using namespace std;

int main()
{
int n, cnt = 0;
cin >> n;
while (n)
{
 n /= 2;
 if ( n) 
 cnt++;
}
cout << cnt;
return 0;
}