n = int(input()) *a, = map(int,input().split()) from math import gcd g = 0 for ai in a: g = gcd(g,ai) for i in range(n): a[i] //= g print(*a,sep=":")