use std::io::Read; fn f(l: &str) { let n: Vec = l.split(' ').flat_map(str::parse).collect(); let mut p = vec![0]; if n[0] < 1 { p.push(1) } else { let mut i = if n[0] % 2 > 0 { 8 } else { 4 }; (1..=n[0] / 2).for_each(|_| { p.push(i); i += 8; }); p.push(i - 4) } for i in 1..p.len() { if p[i - 1] < n[1] && n[1] <= p[i] { println!("Yes\n{} {}", i - 1, n[1] - i + 1); return; } } println!("No") } fn main() { let mut s = String::new(); std::io::stdin().read_to_string(&mut s).ok(); s.lines().skip(1).for_each(f) }