class Howlong attr_reader :k, :s def initialize(k: 0, s: 0) @k, @s = k, s end def cause begin @k = Integer(gets.chomp) @s = Integer(gets.chomp) rescue end end def result puts ((@s * 100)/(100 - @k)).floor end def run cause result end end if $0 == __FILE__ Howlong.new.run end