use std::io::{stdin, Read}; fn main() { let mut buf = String::new(); stdin().read_to_string(&mut buf).unwrap(); let mut tok = buf.split_whitespace(); let mut get = || tok.next().unwrap(); macro_rules! get { ($t:ty) => (get().parse::<$t>().unwrap()); () => (get!(i64)); } let n = get!(); let mut arr = vec![]; let mut gcd = 0; for _ in 0..n { let x = get!(); arr.push(x); if gcd == 0 { gcd = x; } else { let (mut a, mut b) = if x < gcd { (x, gcd) } else { (gcd, x) }; while a != 0 { let t = a; a = b % a; b = t; } gcd = b; } } for i in 0..arr.len() { if i > 0 { print!(":"); } print!("{}", arr[i] / gcd); } println!(); }