import math import numpy as np from functools import reduce n = int(input()) nums = [int(i) for i in input().split()] def gcd(*numbers): return reduce(math.gcd, numbers) gcd_num = gcd(*nums) ratio = np.array(nums) // gvd_num ':'.join(ratio.astype(str))