h,a = map(int,input().split()) ans = 0 while h>0: ans += 1 h = max(h - a, 0) a *= 2 print(ans)