A, B = map(int, input().split()) print(int(50*A + 250*A // (4+B)))