import math def func(n,k): return 50 * n + math.floor((50*n)/(0.8 + 0.2*k)) A,B = [int(i) for i in input().split()] print(func(A,B))