use std::io::*; fn main() { let mut s: String = String::new(); std::io::stdin().read_to_string(&mut s).ok(); let mut itr = s.trim().split_whitespace(); let a: Vec<(usize, usize)> = (0..3) .map(|_| { ( itr.next().unwrap().parse().unwrap(), itr.next().unwrap().parse().unwrap(), ) }) .collect(); let even = a.iter().filter(|&&x| x.0 % 2 == 0).count(); println!(":-{}", if even == 1 || even == 3 { ")" } else { "(" }) }