gets a=gets.split.map &:to_i g=a.inject{|x,y|x.gcd(y)} puts a.map{|x|x/g}.join(':')