N = int(input())
S = input()
tmp = S[0]
ans = 1
for n in range(1,N):
  if S[n] != tmp:
    ans += 1
    tmp = S[n]
print(ans) N = int(input()) N int(input()) int input() input S = input() S input() input tmp = S[0] tmp S[0] S 0 ans = 1 ans 1 for n in range(1,N):
  if S[n] != tmp:
    ans += 1
    tmp = S[n] n range(1,N) range 1 N if S[n] != tmp:
    ans += 1
    tmp = S[n] S[n] != tmp S[n] S n tmp ans += 1 ans 1 tmp = S[n] tmp S[n] S n print(ans) print ans N = int(input()) int(input()) N tmp = S[0] S[0] tmp ans = 1 1 ans ans += 1 1 ans tmp = S[n] S[n] tmp S = input() input() S
N = int(input())
S = input()
tmp = S[0]
ans = 1
for n in range(1,N):
  if S[n] != tmp:
    ans += 1
    tmp = S[n]
print(ans)