#include using namespace std; typedef long long ll; int main(){ ll n, p; cin >> n; ll a[n]; for (int i = 0; i < n; i++){ cin >> a[i]; if (i == 0) p = a[0]; p = gcd(a[i], p); } for (int i = 0; i < n; i++){ cout << a[i]/p; if (i != n-1) cout << ":"; } cout << endl; return 0; }