from math import gcd N=int(input()) a=[*map(int,input().split())] ans=a[0] for i in a: ans=gcd(ans,i) if ans!=1: a=list(map(lambda x: x//ans, a)) print(*a, sep=':')