bis = gets.chomp!.to_i def pokke(n, bis) if n < bis 1 + pokke(2 * n, bis) else 0 end end puts pokke(1, bis)