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