from functools import reduce def gcd(a,b): if b==0:return a return gcd(b,a%b) n=int(input()) *l,=map(int,input().split()) div=reduce(gcd,l) print(":".join(map(lambda x:str(x//div),l)))