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