<a href="https://codeforces.com/contest/1321/problem/C" target="_blank"><i class="fa fa-external-link" aria-hidden="true"> Link -> Remove Adjacent</i></a>
Input Format
check the link
Output Format
check the link
Constraints
check the link
Example
Input
8 bacabcab
Output
4