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