A,B=map(int,input().split()) for i in range(1,100000): for j in range(i+1): if A*10-5<=1000*j//i and 1000*j//i