#!/usr/bin/python import sys from math import log x = int(sys.argv[1]) y = int(sys.argv[2]) for i in range(9): if 2**i == y-x+1: print 8-i break