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