#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
while (cin >> n){
int sum=0, c=0, i=1;
while (i!=0){
sum += i;
c++;
if (n<=sum){
cout << c << '\n';
break;
}
else {
i=i*2;
}
}
}
return 0;
}