use std::io; fn main() { let mut t = String::new(); io::stdin().read_line(&mut t).unwrap(); for _ in 1..=t.trim().parse::().unwrap() { let mut n = String::new(); io::stdin().read_line(&mut n).unwrap(); let array = n.trim().split_whitespace().collect::>(); let mut int_array: Vec = vec![]; for i in array { int_array.push(i.parse::().unwrap()); } if int_array[0] + int_array[1] == int_array[2] { println!("+"); } else { println!("-"); } } }