A,B = map(int,input().split()) tmp = 8 + 2 * B ans = 500 * A // tmp print(50 * A + ans)