#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define _CRT_SECURE_NO_WARNINGS #define rep(i, n) for(int i=0; i<(n); i++) #define FOR(i, m, n) for(int i=(m);i<(n);i++) #define SZ(x) ((int)(x).size()) #define all(x) (x).begin(),(x).end() #define SORT(x) sort((x).begin(),(x).end()) #define REVE(x) reverse((x).begin(),(x).end()) #define mp make_pair #define pb push_back typedef vector VI; typedef vector VS; typedef vector> VVI; typedef pair PII; typedef long long LL; LL gcd(LL n, LL m) { if (m == 0)return n; return gcd(m, n%m); } int main() { LL n; cin >> n; vector a(n); rep(i, n)cin >> a[i]; LL all; rep(i, n) { if (i == 0)continue; else if (i == 1)all = gcd(a[0], a[1]); else all = gcd(all, a[i]); } rep(i, n) { cout << a[i] / all; printf(i == n - 1 ? "\n" : ":"); } }