import math A,B = map(int,raw_input().split()) for i in range(0,1000 + 1): flag = False for j in range(0,1000 + 1): if i + j <= 0:continue if int(i * 100.0 / (i + j) + 0.5) != A:continue if int(j * 100.0 / (i + j) + 0.5) != B:continue flag = True print i + j break if flag:break