a,b=map(int,input().split()) p=50*a q=p//(0.8+0.2*b) print(int(p+q))