A, B = gets.split.map(&:to_i) puts 50 * A + ((50 * A) / (0.8 + (2 * B / 10.0))).floor