using System; using System.Collections.Generic; using System.Linq; public class MyLib { public static List GetIntListFromTextReader(System.IO.TextReader reader, char delimitor) { return reader.ReadLine().Split( delimitor ).ToList().ConvertAll( int.Parse ); } public static void WriteTextStream(System.IO.TextWriter writer, object args) { writer.WriteLine( args ); } } public class Program { public static int Solver(int amount) { double d = Math.Log( (double)amount ) / Math.Log( 2 ); return d - Math.Ceiling( d ) == 0 ? (int)d : (int)d + 1; } private static void Main() { var amount = int.Parse( Console.ReadLine() ); Console.WriteLine( Solver( amount ) ); } }