import math n = int(input()) l = list(map(int, input().split())) x = l[0] for i in l: x = math.gcd(x, i) l2 = [str(i//x) for i in l] print(':'.join(l2))