import sys input=lambda: sys.stdin.readline().rstrip() n=int(input()) A=[int(i) for i in input().split()] def gcd(a,b): while b: a,b=b,a%b return a d=A[0] for i in range(1,n): d=gcd(d,A[i]) Ans=[] for i in range(n): Ans.append(A[i]//d) print(*Ans,sep=":")