#define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string>
#include<iostream>
#include<iostream>
#include<cctype>
#include<cstdio>
#include<vector>
#include<stack>
#include<queue>
#include <algorithm>
#include<math.h>
#include<set>
#include<map>
#include <sstream>
#include<iomanip>
#include <ctype.h>
using namespace std;

//#include<bits/stdc++.h>

int main() {

	int n;
	cin >> n;
	long long int p=1,x;vector<long long int>w;
	for (int i = 0; i < n; i++) {
		cin >> x;
		w.push_back(x);
		long long int a = x;
		if (!i) {
			p = x; continue;
		}
		while (1) {
			if (a > p)swap(p, a);

			if (!a)break;

			p = p%a;
		}
		
	}

	for (int i = 0; i < n; i++)
	{
		if (i)cout << ":";
		cout << w[i] / p;
	}
	cout << endl;

	return 0;
}