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