MOD = 10 ** 9 + 7 INF = 10 ** 10 import sys sys.setrecursionlimit(100000000) dy = (-1,0,1,0) dx = (0,1,0,-1) from math import gcd from functools import reduce def main(): n = int(input()) a = list(map(int,input().split())) g = reduce(gcd,a) a = [i//g for i in a] print(':'.join(map(str,a))) if __name__ == '__main__': main()