# -*- coding: utf-8 -*- # !/usr/bin/env python # vim: set fileencoding=utf-8 : """ # # Author: Noname # URL: https://github.com/pettan0818 # License: MIT License # Created: 金 9/28 21:35:38 2018 # Usage # """ import math from functools import reduce def get(): _ = input() return [int(i) for i in input().split(' ')] def solve(nums): """ >>> solve([24,30,36]) >>> solve([12,18,30,42,66]) >>> solve([9,12,16]) """ gcd = int(reduce(math.gcd, nums)) res = [str(int(i//gcd)) for i in nums] print(':'.join(res) + '\n') if __name__ == '__main__': solve(get())