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