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