from math import gcd N = int(input()) A = list(map(int, input().split())) g = A[0] for i in range(1, N): g = gcd(g, A[i]) ans = "" for i in range(N): ans += str(A[i]//g) + ":" print(ans[:-1])