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