import sys,collections,math;sys.setrecursionlimit(10**7) def Is(): return [int(x) for x in sys.stdin.readline().split()] def Ss(): return sys.stdin.readline().split() def I(): return int(sys.stdin.readline()) def S(): return input() def gcd(a, b): if b == 0: return a return gcd(b, a % b) n = I() lis = Is() t = lis[0] for i in range(1,n): t = gcd(t,lis[i]) ans = [str(e//t) for e in lis] print(":".join(ans))