from functools import reduce def gcd(a, b): while b: a, b = b, a % b return a N = int(input()) A = list(map(int, input().split())) g = reduce(gcd, A) print(*[a // g for a in A], sep=':')