#! ruby # yukicoder My Practice # author: Leonardone @ NEETSDKASU P = gets.to_i P.times do |i| n, k = gets.split.map(&:to_i) if (n.odd? && k.odd?) || (n.even? && k.even?) puts 'YES' else puts 'NO' end end =begin N=5 K=3 S 1 L S 234 5 S 12 L S 34 5 S 123 L S 4 5 N=6 K=3 S 1 L S L 2 345 6 L S L 234 5 6 L S L 23 45 6 N=5 K=4 S L 1234 5 N=6 K=4 S L S 1 2345 6 S L S 1234 5 6 =end