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