import math from functools import reduce n=int(input()) l=list(map(int,input().split())) g=reduce(math.gcd,l) print(':'.join([str(x//g) for x in l]))