The first line contains four integers n,m,l,rn,m,l,rn,m,l,r (2≤n≤1052 \le n \le 10^52≤n≤105, 2≤nm2≤4×1072 \le nm^2 \le 4 \times 10^72≤nm2≤4×107, 0≤l≤r<2m0 \le l \le r < 2^m0≤l≤r<2m).
The iii-th of the following nnn lines contains mmm integers bi,1,bi,2,…,bi,mb_{i,1},b_{i,2},\ldots,b_{i,m}bi,1,bi,2,…,bi,m (0≤bi,j<2m0 \le b_{i,j} < 2^m0≤bi,j<2m).
Please note that l,r,bi,jl,r,b_{i,j}l,r,bi,j are given in binary notation length of mmm.