def f(n,k) 50 * n + ((50 * n).to_f / (0.8 + 0.2 * k)).floor end A, B = gets.split.map(&:to_i) puts f(A,B)