N = int(input()) a = list(map(int,input().split())) def gcd(a,b): while True: r = a % b a = b b = r if r == 0: return a d = gcd(a[0],a[1]) for i in range(2,N): d = gcd(d,a[i]) print(a[0] // d,end='') for i in range(1,N): print(f':{a[i]//d}',end='') print()