# No.445 得点 a, b = [int(s) for s in input().split()] print('{0:.0f}'.format(50 * a + (50 * a) // (0.8 + 0.2 * b)))