import math N = int(input()) lsa = list(map(int,input().split())) ans = 0 for i in range(N): ans = math.gcd(ans, lsa[i]) lsb = [] for i in range(N): lsb.append(lsa[i]//ans) print(*lsb,sep=':')