n = int(input())
s = input()

num = n
for i in range(n-1,0,-1):
    if s[i]==s[i-1]:
        s = s[:i] + s[i+1:]
    
print(len(s))      n = int(input()) n int(input()) int input() input s = input() s input() input num = n num n for i in range(n-1,0,-1):
    if s[i]==s[i-1]:
        s = s[:i] + s[i+1:]
     i range(n-1,0,-1) range n-1 n 1 0 -1 if s[i]==s[i-1]:
        s = s[:i] + s[i+1:]
     s[i]==s[i-1] s[i] s i s[i-1] s i-1 i 1 s = s[:i] + s[i+1:] s s[:i] + s[i+1:] s[:i] s :i i s[i+1:] s i+1: i+1 i 1 print(len(s)) print len(s) len s num = n n num n = int(input()) int(input()) n s = s[:i] + s[i+1:] s[:i] + s[i+1:] s s = input() input() s
n = int(input())
s = input()

num = n
for i in range(n-1,0,-1):
    if s[i]==s[i-1]:
        s = s[:i] + s[i+1:]
    
print(len(s))     
