ll b[2],c[2],z;rd((b,c)(2));z=chineseRemainder(2,c,b);z<0?cout<<"NaN":cout<