N = int(input())
S = input()
ans = 0
prev = -1
for s in S:
  if prev != s:
    ans+=1
    prev=s
print(ans) N = int(input()) N int(input()) int input() input S = input() S input() input ans = 0 ans 0 prev = -1 prev -1 for s in S:
  if prev != s:
    ans+=1
    prev=s s S if prev != s:
    ans+=1
    prev=s prev != s prev s ans+=1 ans 1 prev=s prev s print(ans) print ans prev = -1 -1 prev ans = 0 0 ans ans+=1 1 ans S = input() input() S prev=s s prev N = int(input()) int(input()) N
N = int(input())
S = input()
ans = 0
prev = -1
for s in S:
  if prev != s:
    ans+=1
    prev=s
print(ans)