There are cups in a row. Cup contains units of either tea or coffee. A string describes their drinks: means tea, and means coffee.
In one operation, choose two adjacent cups containing different drinks. If their current amounts are and , drink units from each cup. Remove every cup that becomes empty, and close the gaps in the row.
Find the minimum number of cups that can remain after any number of operations.
For each test case, print the minimum number of cups that can remain.