using System; class yukicoder { static void Main(string[] args) { var r = new Reader(); var N = r.nextInt(); Console.WriteLine(N % 2 != 0 ? calc(N) + 1 : calc(N)); } static int calc(int n) { if (n != 1 ) { return calc(n / 2) + 1; } else { return 0; } } } class Reader { string[] s; int i; char[] cs = new char[] { ' ' }; public Reader() { s = new string[0]; i = 0; } public string next() { if ( i < s.Length ) return s[i++]; var input = Console.ReadLine(); while ( input == "" ) input = Console.ReadLine(); s = input.Split(cs, StringSplitOptions.RemoveEmptyEntries); i = 0; return next(); } public int nextInt() { return int.Parse(next()); } }