#include using namespace std; using i32 = int32_t;using i64 = int64_t;using u32 = uint32_t;using u64 = uint64_t;using f32 = float;using f64 = double;using f80 = long double; using i128 = __int128_t;using u128 = __uint128_t; using vi32 = vector;using vi64 = vector;using vu32 = vector;using vu64 = vector; using vvi32 = vector>;using vvi64 = vector>;using vvu32 = vector>;using vvu64 = vector>; using pi32 = pair;using pi64 = pair;using pu32 = pair;using pu64 = pair; using vpi32 = vector;using vpi64 = vector;using vpu32 = vector;using vpu64 = vector; i64 gcd(i64 a, i64 b) { return b ? gcd(b, a % b): a; } int main() { i64 n; cin >> n; i64 a[100]; for (i64 i = 0; i < n; i++) cin >> a[i]; i64 g = a[n - 1]; for (i64 i = 0; i < (n - 1); i++) g = gcd(g, a[i]); for (i64 i = 0; i < n; i++) { if (i) cout << ':'; cout << a[i] / g; } cout << '\n'; return 0; }