import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); long[]a = new long[N]; for(int i = 0; i < N; i++) { a[i] = scan.nextLong(); } scan.close(); long g = gcd(a[0], a[1]); for(int i = 2; i < N; i++) { g = gcd(g, a[i]); } long[]b = new long[N]; for(int i = 0; i < N; i++) { b[i] = a[i] / g; } for(int i = 0; i < N; i++) { long t = a[i] / g; if(i == N - 1) { System.out.println(t); }else { System.out.print(t + ":"); } } } static long gcd(long m, long n) { if(m < n) return gcd(n, m); if(n == 0) return m; return gcd(n, m % n); } }