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