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