A,B = map(int,input().split()) f = 50*A+(500*A)//(8+2*B) print(f)