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