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