gets a = gets.split.map(&:to_i) gcd = a.inject :gcd puts a.map{|n|n / gcd}*?: