from functools import reduce from math import gcd r=int(input()) n=list(map(int,input().split())) t=n[0] for i in range(1,r): t=gcd(t,n[i]) p=map(lambda x: x//t, n) d =reduce(lambda x, y: x +":"+ y, [str(x) for x in p]) print(d)