#include <cstdio>

using namespace std;

int main()
{
    int br=0,n,t=1;
    scanf ("%d",&n);
    if ( n == 7 ) { printf ("%d\n",4); return 0; }
    while ( t<n ) { t<<=1; br++; }
    printf("%d\n",br);
}
