from math import gcd n = int(input()) a = list(map(int, input().split())) d = gcd(*a) for i in range(n): a[i] //= d print(*a, sep=':')