from functools import reduce from math import gcd N = int(input()) A = list(map(int, input().split())) g = reduce(gcd, A) res = list(map(lambda x: x // g, A)) print(*res, sep=':')