using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace poketto { class Program { static void Main(string[] args) { var str0 = long.Parse(Console.ReadLine()); double syou = (double)str0; var kotae = 0; var kisuu = false; do { if (syou % 2 != 0) { kisuu = true; } syou = syou / 2.0; kotae++; } while ( 2.0 <= syou ); if (kisuu) { kotae++; } if (str0 == 1) { kotae = 1; } Console.WriteLine(kotae); } } }