def f(N,K): X = int(50*N/(0.8 + 0.2*K)) print(50 * N + X) A, B = map(int,input().split()) f(A,B)