def f(N,K): front = 50 * N tail = front // (0.8 + 0.2 * K) return int(front + tail) A,B = map(int,input().split()) print(f(A,B))