def gcd(a, b):
    if b == 0:
        return a
    return gcd(b, a % b)
N = int(input())
A = list(map(int, input().split()))
g = A[0]
for i in range(1, N):
    g = gcd(g, A[i])
A = [str(A[i] // g) for i in range(N)]
print(":".join(A))