from math import gcd n = int(input()) a = list(map(int, input().split())) g = 0 for i in a: g = gcd(g, i) for i in range(n): a[i] //= g print(*a, sep=":")