from math import gcd from functools import reduce n = int(input()) A = list(map(int, input().split())) g = reduce(gcd, A, A[0]) for i in range(n): A[i] //= g print(':'.join(map(str, A)))