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