def gcd(x,y): while y>0: x,y = y,x%y return x N = int(input()) A = list(map(int,input().split())) d = A[0] for i in range(1,N): d = gcd(d,A[i]) A = [str(A[i]//d) for i in range(N)] print(":".join(A))