import math from functools import reduce def gcd(*numbers): return reduce(math.gcd, numbers) n = int(input()) l = [int(_) for _ in input().split()] x = gcd(*l) l1 = [str(i//x) for i in l] print(':'.join(l1))