import strutils var n: int = stdin.readline.parseInt ans: int = 0 for i in 0..30: if 1 shl i < n: ans.inc echo ans