#include #define int long long using namespace std; const int MOD = 1000000007; using Graph = vector>; int gcd(int a, int b){ if(!a) return b; return gcd(b%a,a); } signed main() { int N; cin >> N; vector A(N); for( int i = 0; i < N; i++ ) cin >> A.at(i); int G = gcd(A[0], A[1]); for( int i = 2; i < N; i++ ) G = gcd(G, A[i]); for( int i = 0; i < N; i++ ){ if( i > 0 ) cout << ":"; cout << A[i]/G; } cout << endl; }