eval(input())

import itertools

print((len(list(itertools.groupby(eval(input()))))))
import sys

readline = sys.stdin.readline



N = int(readline())

S = readline().rstrip()



ans = 1

for i in range(1,len(S)):

  if S[i] != S[i - 1]:

    ans += 1

print(ans)
eval(input())
import itertools

print((len(list(itertools.groupby(eval(input()))))))

import sys

readline = sys.stdin.readline
N = int(readline())
S = readline().rstrip()
ans = 1
for i in range(1, len(S)):
    if S[i] != S[i - 1]:
        ans += 1
print(ans)

-eval(input()) -import itertools +import sys -print((len(list(itertools.groupby(eval(input())))))) +readline = sys.stdin.readline +N = int(readline()) +S = readline().rstrip() +ans = 1 +for i in range(1, len(S)): +    if S[i] != S[i - 1]: +        ans += 1 +print(ans)