Peter did not hand in his homework for today's computer science lesson, so he was punished with an extra task. The teacher wrote two strings of the same length on the blackboard and told Peter to make them equal using operations of only one type. One operation picks one of the two strings and inverts two adjacent characters of it. Inversion turns 0 into 1 and 1 into 0.
To make the task harder, the teacher also requires the number of operations to be minimal.
For example, if the two strings are 0101 and 1111, you can invert the two middle characters of the first string to get 0011 and 1111, then invert the first two characters of the second string to get 0011 and 0011. Other ways to finish in the same number of operations exist.
Solve Peter's task for him.