import numpy as np A = int(input()) B = int(input()) print(int(np.round(np.log(B / A) / np.log(40))))