a,b=map(int,input().split()) print(int(50*a+500*a//(8+2*b)))