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