It's Halloween night, and ghosts and vampires have gathered for the Monster Mash!
There are $$$n$$$ ($$$1 \le n \le 2 \cdot 10^5$$$) monsters standing in a row. Each monster is either a ghost (G) or a vampire (V).
Whenever two adjacent monsters are of the same type, they can fuse into one monster of the opposite type:
What is the minimum number of monsters that can remain?
The first line contains an integer $$$n$$$ ($$$1 \le n \le 2 \cdot 10^5$$$), the number of monsters.
The second line contains a string of length $$$n$$$, consisting only of the characters G and V, representing the monsters from left to right.
Print a single integer: the minimum possible number of monsters remaining after performing any number of valid fusions.
4GGVV
2
In the sample, one possible sequence of fusions is $$$$$$\texttt{GGVV}\rightarrow\texttt{VVV}\rightarrow\texttt{GV}.$$$$$$ No further fusion is possible. The only other possible first fusion produces GGG. From either VVV or GGG, the next fusion leaves GV or VG, so every choice stops at two monsters. Therefore, the answer is $$$2$$$.