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