#include using namespace std; using ll = long long; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin >> n; vector va(n); for (int i = 0; i < n; ++i) cin >> va[i]; ll g{ va[0] }; for (int i = 1; i < n; ++i) g = __gcd(g, va[i]); for (int i = 0; i < n - 1; ++i) cout << va[i] / g << ":"; cout << va[n - 1] / g << "\n"; return 0; }