class A def initialize d, p = gets.chomp.split(' ').map(&:to_i) puts d + (d * p * 0.01).floor end end A.new