#include <bits/stdc++.h>
using namespace std;

template <typename T>
T gcd(T a, T b)
{
	while (b)
	{
		T tmp = b;
		b = a % b;
		a = tmp;
	}
	return a;
}

int main()
{
	int64_t n;
	cin >> n;
	vector<int64_t> as(n);
	for (auto &a : as)
	{
		cin >> a;
	}
	int64_t g = as[0];
	for (auto &a : as)
	{
		g = gcd(g, a);
	}
	for (int i = 0; i < n; i++)
	{
		if (i)
		{
			cout << ':';
		}
		cout << as[i] / g;
	}
	cout << endl;
	return 0;
}