import math import itertools as it n = int(input()) sq = list(map(int, input().split())) ls = [] for i in it.combinations(sq, r=2): a = math.gcd(i[0],i[1]) ls.append(a) b = min(ls) r = [str(i//b) for i in sq] print(":".join(r))