n=gets.to_i a=gets.split.map &:to_i g=0 for v in a;g=g.gcd(v);end for i in 0...n;a[i]/=g;end puts a*':'