Ma5termind is very fond of ice-creams. He bought himself N ice-creams of two types which are represented in the form of string of 0's and 1's such that 0 represents ice-cream of type 1 and 1 represents ice-cream of other type. Now he is in dilemma to eat which ice-cream first.
So to make things simple he decided to eat all ice-cream of one type first and then the other type ice-cream. But ice-cream of both types are arranged in random order. He can perform a swap operation in which he can swap ice-cream from any position i and j.
Now ma5termind wants to seggregate ice-cream of two types in minimum possible number of swaps otherwise ice cream will melt and he will become sad.
Help him figure out the minimum number of swaps needed.
In the first sample test we can get 1100 by swaping ice-cream from position 2nd and 4th and swaps operations performed will be 1.