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