#include #define rep(i, n) for (int i = 0; i < (n); i++) #define rrep(i, n) for (int i = (n) - 1; i >= 0; i--) #define reps(i, n) for (int i = 1; i <= (n); i++) #define repi(i, a, b) for (int i = (a); i < (b); i++) #define all(a) (a).begin(), (a).end() #define bit(b) (1ll << (b)) using namespace std; using i32 = int; using u32 = unsigned int; using i64 = long long; using u64 = unsigned long long; using f64 = double; using f80 = long double; using pii = pair; using vi32 = vector; using vu32 = vector; using vi64 = vector; using vu64 = vector; using vf64 = vector; using vf80 = vector; using vstr = vector; using vpii = vector; using vvi32 = vector; using vvu32 = vector; using vvi64 = vector; using vvu64 = vector; using vvf64 = vector; using vvf80 = vector; template bool amax(T &x, S y) { if (x < y) { x = y; return 1; } return 0; } template bool amin(T &x, S y) { if (y < x) { x = y; return 1; } return 0; } u64 gcd(u64 a, u64 b) { if (a % b == 0) return b; else return gcd(b, a % b); } int main() { ios::sync_with_stdio(false); cin.tie(0); cout << fixed << setprecision(16); cerr << fixed << setprecision(16); i32 n; cin >> n; vu64 a(n); rep(i, n) cin >> a[i]; u64 ans = a[0]; reps(i, n - 1) { ans = gcd(ans, a[i]); } rep(i, n) { if (i < n - 1) cout << a[i] / ans << ":"; else cout << a[i] / ans << endl; } return 0; }