The first line contains two integersdenoting the numbers of colleagues and questions.
The second line contains a string.
For the nextlines, each line contains two integers
,
, requesting the least number of changes if
=
.
To reduce the impact of output time, you only need to output theof each query.