#include using namespace std; template T gcd(T a, T b) { if (b == 0) return a; return gcd(b, a % b); } int main() { ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; int a[n]; int tmp = 1; for (int i = 0; i < n; ++i) { cin >> a[i]; if (i == 0) tmp = a[i]; else tmp = gcd(tmp, a[i]); } for (int i = 0; i < n; ++i) { if (i) cout << ":"; cout << a[i] / tmp; } cout << endl; }