import math N = int(input()) A = list(map(int, input().split())) g = math.gcd(*A) B = list(map(lambda x: str(x//g), A)) print(':'.join(B))