#include using namespace std; //macro----------------------------------------------------------------------------------------- #define rep(i,a,b) for(int i=a;ib;i--) #define int long long //constant-------------------------------------------------------------------------------------- const int inf = 100100100100000; const int mod = 1000000007; int dx[4]={1,0,-1,0}; int dy[4]={0,1,0,-1}; //general_method-------------------------------------------------------------------------------- vector cs(vector arr){vector ret = arr;rep(i,1,arr.size()){ret[i] += ret[i-1];}return ret;} int ceil(int a, int b){if(a%b == 0) return a/b;else return a/b + 1;} int digitlen(int i){int t = i;int count = 0;while(t){count += 1;t /= 10;}return count;} //io_method------------------------------------------------------------------------------------- int input(){int tmp;cin >> tmp;return tmp;} string raw_input(){string tmp;cin >> tmp;return tmp;} string readline(){string s;getline(cin, s);return s;} void print(int n){cout << n << endl;} void print(vector arr){cout << arr[0];rep(i,1,arr.size()) cout << " " << arr[i];cout << endl;} void print(string s){cout << s << endl;} void print(pair p){cout << p.first << " " << p.second;} void print(vector> arr){rep(i,0,arr.size()){print(arr[i]);}} void print(vector arr){cout << arr[0];rep(i,1,arr.size()) cout << " " << arr[i];cout << endl;} //main------------------------------------------------------------------------------------------ int gcd(int a, int b){ if(b== 0)return a; return gcd(b, a%b); } signed main(){ std::ios::sync_with_stdio(false); std::cin.tie(0); int n = input(); int arr[n]; rep(i,0,n) cin >> arr[i]; int g = arr[0]; rep(i,1,n){ g = gcd(g, arr[i]); } cout << arr[0]/g; rep(i,1,n){ cout << ":" << arr[i]/g; } cout << endl; }