using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ForYukicoder { class Program { static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); int count; count = (int)Math.Log(N, 2); int cookie = (int)(N % Math.Pow(2, count)); if (cookie == 0) { } else if (cookie == 1 || cookie % 2 == 0) { count += 1; } else { count += 2; } Console.WriteLine(count); } } }