the Alices computer break can not play favorite card game to help Alice Bob want answer n question Initially Bob hold card number 0 leave hand right hand in ith question Alice ask Bob replace card leave right hand card number k_i Bob choose card change Bob replace exactly cardafter action Alice want number leave right card belong give segment segment leave right card different formally let number leave card x right card y then ith swap follow condition satisfied a_l le x le b_l a_r le y le b_riPlease determine Bob answer request if possible find way