def compte():
	count = O
	for i in s(gene[0], gene[1]):


def muter(a,b):
	new_gene = s(a,b)
	for i in range(b-a):
		if s[i] == "0":
			new_gene[i] = "1"
			compte()
		else:
			new_gene[i] = "0"
			compte()



def main():
	gene = []
	n, q = input.split(" ")
	s = input()
	for i in range(int(q)):
		gene.append(int(a),int(b))

if __name__ == '__main__':
	main()