package main import . "fmt" import . "os" import bf "bufio" func main() { rd:=bf.NewReader(Stdin) var t int Fscan(rd,&t) for ;t>0;t-- { var n,m int Fscan(rd,&n,&m) ok:=true s1,s2:=m,0 for i:=0;i