import math from functools import reduce def gcd(numbers): return reduce(math.gcd, numbers) cnt = int(input()) nums = list(map(int,input().split())) k=gcd(nums) for i in range(cnt): nums[i] = int(nums[i] / k) print(":".join(list(map(str,nums))))