#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; long long a[n]; long long 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; }