import math n = int(input()) A = list(map(int, input().split())) g = math.gcd(*A) print(*[a // g for a in A], sep=":")