N=int(input()) a=list(map(int,input().split())) def gcd(a,b): A=max(a,b) B=min(a,b) while A%B!=0: A,B=B,A%B return B G=gcd(a[0],a[1]) for i in range(1,N): G=gcd(G,a[i]) #print(G) for i in range(N): a[i]//=G #print(a) ans=str(a[0]) for i in range(1,N): ans+=":"+str(a[i]) print(ans)