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