a=int(input())
b=input()
c=0
for i in range(a-1):
  if b[i]==b[i+1]:
    c=c+1
print(a-c) a=int(input()) a int(input()) int input() input b=input() b input() input c=0 c 0 for i in range(a-1):
  if b[i]==b[i+1]:
    c=c+1 i range(a-1) range a-1 a 1 if b[i]==b[i+1]:
    c=c+1 b[i]==b[i+1] b[i] b i b[i+1] b i+1 i 1 c=c+1 c c+1 c 1 print(a-c) print a-c a c a=int(input()) int(input()) a b=input() input() b c=c+1 c+1 c c=0 0 c
a=int(input())
b=input()
c=0
for i in range(a-1):
  if b[i]==b[i+1]:
    c=c+1
print(a-c)