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