import math n = int(input()) a = list(map(int,input().split())) d = a[0] for i in range(1,n): d = math.gcd(d,a[i]) ans = [str(i//d) for i in a] print(":".join(ans))