def f(n, k): return 50*n + (250*n)//(4+k) A, B = map(int, input().split()) print(f(A, B))