A function on a binary string T of length M is defined as follows:
F(T) = number of indices i (1≤i<M) such that Ti≠Ti+1.
You are given a binary string S of length N. You have to divide string S into two subsequences S1,S2 such that:
Find the maximum possible value of F(S1)+F(S2).
NOTE: A binary string is a string that consists of characters `0` and `1`. One of the strings S1, S2 can be empty.
Input format
Output format
For each test case, print the maximum possible value of F(S1)+F(S2) in a separate line.
Constraints
1≤T≤1051≤N≤105∣S∣=NScontainscharacters ′0′ and ′1′.SumofNoveralltestcasesdoesnotexceed2⋅105.
The first test case
The second test case
The third test case