class Firststep attr_reader :a, :b def initialize(a: 0, b: 0) @a, @b = a, b end def datainput begin @a, @b = gets.chomp.split.map { |v| Integer(v) } rescue end end def how_many_steps?(a, b) (b / a.to_f).ceil end def dataoutput puts how_many_steps?(@a, @b) end def run datainput dataoutput end end if $0 == __FILE__ Firststep.new.run end