import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines from math import gcd from functools import reduce N,*A = map(int,read().split()) g = reduce(gcd, A) A = [x//g for x in A] print(':'.join(map(str,A)))