def main(): A, B = map(int, input().split()) x = 50 * A y = x // (0.8 + 0.2 * B) print(int(x + y)) main()