using System; using System.Linq; class No736 { static void Main() { var length = Int32.Parse(Console.ReadLine()); var line = Console.ReadLine().Split(' ').Select(x=>Int64.Parse(x)); var num = line.OrderBy(x => x).ToArray(); long n = 0; for (int i = 0; i < length - 1; ++i) { var m = num[i + 1]; n = n == 0 ? num[i] : n; while (true) { var temp = m % n; if (temp == 0) break; else { m = n; n = temp; } } } var la = line.Select(x => x / n).ToArray(); for (int i = 0; i < length; ++i) { Console.Write(la[i]); if (i != length - 1) Console.Write(":"); else Console.WriteLine(); } } }