Little Bolek find picture n mountain peak paint the n paint peak represent nonclosed polyline consist 2n segment the segment 2n1 point coordinate 1y1 2y2 2n1y2n1 ith segment connect point iyi point i1yi1 for 2i2n follow condition hold yi1yi yiyi1 we shall vertex polyline x coordinate mountain peak the figure leave show initial picture figure right show picture look like Boleks action the affected peak mark red k 2 Bolek fancy little mischief he choose exactly k mountain peak rub segment go peak increase peak height increase y coordinate corresponding point then paint miss segment new picture mountain peak let denote point new polyline pass Boleks new picture 1r1 2r2 2n1r2n1given bolek final picture restore initial