#include #define rep(i,n) for(int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main(){ cin.tie(0); ios::sync_with_stdio(0); int n; cin >> n; vector a(n); rep(i,n) cin >> a[i]; ll g = a[0]; rep(i,n) g = gcd(g, a[i]); rep(i,n) a[i] /= g; rep(i,n) cout << a[i] << ":\n"[i == n - 1]; }