A, B = map(int, input().split()) As = A - 0.5 Al = A + 0.5 Bs = B - 0.5 Bl = B + 0.5 for i in range(101): for j in range(101): if As *(i+j) <= 100* i