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