You are given a string S that contains N characters. Your task is to determine the maximum possible size of the subsequence T of S such that no two adjacent characters in T are the same.
Note: The string contains only lowercase English alphabets.
Input format
Output format
For each test case, print a single line containing one integer that represents the maximum size of the subsequence that satisfies the provided condition.
Constraints
1≤T≤1031≤N≤105
Note: The sum of N overall test cases do not exceed 106.
For the string ababa we can select the complete string as T, since no two adjacent characters are identical, so answer is 5.
For the string aaaac the maximum possible T which can be formed is ac so answer is 2.