Lakhesh love movie Nephren help run cinema we no 68 CinemaHowever day no 68 Cinema run change do not 50yuan note currently Nephren want start business Assume yuan kind currency Regulu EreThere type customer bring exactly 50yuan note bring 100yuan note Nephren need 50yuan note himher bring vip card do not need pay ticketnow n customer wait outside queue Nephren want know possible queue able run smoothly ie customer receive hisher change number 50yuan note sell ticket customer l r inclusive two queue consider different exist customer type different queue as number large output answer modulo p