def slove():

    import sys

    input = sys.stdin.readline

    n, m = list(map(int, input().rstrip('\n').split()))

    cnt = 1

    t = n

    while True:

        t *= 2

        if t <= m:

            cnt += 1

        else:

            print(cnt)

            exit()





if __name__ == '__main__':

    slove()

def slove():

    import sys

    input = sys.stdin.readline

    x, y = list(map(int, input().rstrip('\n').split()))

    t = x

    cnt = 1

    while True:

        t *= 2

        if t <= y:

            cnt += 1

        else:

            print(cnt)

            exit()





if __name__ == '__main__':

    slove()

def slove():
    import sys

    input = sys.stdin.readline
    n, m = list(map(int, input().rstrip("\n").split()))
    cnt = 1
    t = n
    while True:
        t *= 2
        if t <= m:
            cnt += 1
        else:
            print(cnt)
            exit()


if __name__ == "__main__":
    slove()

def slove():
    import sys

    input = sys.stdin.readline
    x, y = list(map(int, input().rstrip("\n").split()))
    t = x
    cnt = 1
    while True:
        t *= 2
        if t <= y:
            cnt += 1
        else:
            print(cnt)
            exit()


if __name__ == "__main__":
    slove()

-    n, m = list(map(int, input().rstrip("\n").split())) +    x, y = list(map(int, input().rstrip("\n").split())) +    t = x -    t = n -        if t <= m: +        if t <= y: