n = int(input()) l = list(map(int, input().split())) def gcd(a,b): while b: a, b = b, a%b return a g = l[0] for x in l: g = gcd(x, g) l = [x//g for x in l] print(*l, sep=':')