#include using namespace std; long long gcd(long long a, long long b) { while (b > 0) { long long t = a % b; a = b; b = t; } return a; } int main() { int n; cin >> n; vector a(n); for (int i = 0; i < n; ++i) { cin >> a[i]; } long long g = a[0]; for (int i = 1; i < n; ++i) { g = gcd(g, a[i]); } for (int i = 0; i < n; ++i) { if (i == 0) { cout << a[i] / g; } else { cout << ":" << a[i] / g; } } cout << "\n"; return 0; }