#include #include #include using namespace std; #define INF 100000000 #define YJ 1145141919 #define INF_INT_MAX 2147483647 #define INF_LL_MAX 9223372036854775807 #define EPS 1e-10 #define MOD 1000000007 #define Pi acos(-1) #define LL long long #define ULL unsigned long long #define LD long double #define int long long const int MAX_N = 105; int N; int A[MAX_N]; const int MAX_K = 100005; signed main() { cin >> N; for(int i = 0; i < N; i++) { cin >> A[i]; } int k = __gcd(A[0], A[1]); for(int i = 2; i < N; i++) { k = __gcd(A[i], k); } for(int i = 0; i < N; i++) { cout << A[i]/k; if(i < N-1) { cout << ":"; } } cout << endl; return 0; }