import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(10 ** 7) from math import gcd n = int(readline()) a = list(map(int, readline().split())) memo = a[0] for i in range(1, n): memo = gcd(memo, a[i]) for i in range(n - 1): print(str(a[i] // memo) + ':', end='') print(str(a[-1] // memo))