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