import math n,k=map(int,input().split()) print(50*n+math.floor(250*n/(4+k)))