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