import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { new Main().run(); } final long MOD = (long) (1e9 + 7); public void run() throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long[] a = new long[n]; long gcd = a[0]; for (int i = 0; i < n; ++i) { a[i] = sc.nextLong(); gcd = gcd(a[i], gcd); } for (int i = 0; i < n; ++i) { a[i] /= gcd; } for (int i = 0; i < n; ++i) { System.out.print(a[i] + (i == n - 1 ? "\n" : ":")); } } long gcd(long a, long b) { if (a > b) return gcd(b, a); if (a == 0) return b; return gcd(b % a, a); } void tr(Object... objects) { System.out.println(Arrays.deepToString(objects)); } }