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