completion = 100 / (100 - gets.chomp.to_f) minute = gets.chomp.to_f puts (completion * minute).round