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