A,B=map(int,input().split()) ans=1<<30 for a in range(1000): for b in range(1000): if (a,b)==(0,0): continue if (A,B)==((200*a+a+b)//(2*(a+b)),(200*b+a+b)//(2*(a+b))): ans=min(ans,a+b) print(ans)