import java.io.*; import java.util.Scanner; public class Main_yukicoder736 { private static Scanner sc; private static Printer pr; private static void solve() { int n = sc.nextInt(); long[] a = new long[n]; for (int i = 0; i < n; i++) { a[i] = sc.nextLong(); } long gcd = a[0]; for (int i = 1; i < n; i++) { gcd = gcd(gcd, a[i]); } for (int i = 0; i < n; i++) { if (i > 0) { pr.print(':'); } pr.print(a[i] / gcd); } pr.println(); } static long gcd(long n, long m) { if (m == 0) { return n; } else { return gcd(m, n % m); } } // --------------------------------------------------- public static void main(String[] args) { sc = new Scanner(System.in); pr = new Printer(System.out); solve(); pr.close(); sc.close(); } static class Printer extends PrintWriter { Printer(OutputStream out) { super(out); } } }