# coding: utf-8 #yuki_338 import sys ep=0.000001 def myround(n1,n2): x1=100.0*n1/(n1+n2) y1=x1+0.5 z1=int(y1+ep) x2=100.0*n2/(n1+n2) y2=x2+0.5 z2=int(y2+ep) return z1,z2 s=map(int,raw_input().split()) a=s[0] if a==0: print 1 sys.exit() b=s[1] if b==0: print 1 sys.exit() for i in xrange(1,201): for j in xrange(1,201): z1,z2=myround(i,j) if z1==a and z2==b: print i+j sys.exit()