from functools import reduce import math n = int(input()) ar = list(map(int,input().split())) g = reduce(math.gcd, ar) print(':'.join(str(s//g) for s in ar))