import java.util.*; public class Main { // ユークリッド互除法関数 public static long gcd(long argA, long argB) { long a,b,r; a = argA; b = argB; if (a < b) { long tmp = a; a = b; b = tmp; } r = a % b; while (r > 0) { a = b; b = r; r = a % b; } System.out.println(b); return b; } public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long val[] = new long[n]; long gcf = 0; long tmp = 0; // テストケースの値を確保 for (int i = 0; i < n; i++) { val[i] = sc.nextLong(); } // 最大公約数を求める for (int i = 0; i < n; i++) { if (i + 1 < n) tmp = gcd(val[i], val[i + 1]); if (gcf == 0) gcf = tmp; if (gcf > tmp) gcf = tmp; } // 最大公約数の検証 for (int i = 0; i < n; i++) { if (val[i] % gcf != 0) gcf = 1; } // 答えの出力 for (int i = 0; i < n; i++) { System.out.print(val[i] / gcf); if (i != n - 1) { System.out.print(":"); } } System.out.println(); } }