def calc(N, K): return 50*N+500*N/(8+2*K) A, B = map(int, raw_input().split()) print calc(A, B)