n=int(input())
s=list(input())
c=0
out=0
for i in range(0,n-1):
    if s[i]==s[i+1]:
        c+=1
    else:
        out+=c
        c=0
out+=c
out=n-out
print(out) n=int(input()) n int(input()) int input() input s=list(input()) s list(input()) list input() input c=0 c 0 out=0 out 0 for i in range(0,n-1):
    if s[i]==s[i+1]:
        c+=1
    else:
        out+=c
        c=0 i range(0,n-1) range 0 n-1 n 1 if s[i]==s[i+1]:
        c+=1
    else:
        out+=c
        c=0 s[i]==s[i+1] s[i] s i s[i+1] s i+1 i 1 c+=1 c 1 out+=c out c c=0 c 0 out+=c out c out=n-out out n-out n out print(out) print out out=0 0 out c=0 0 c out+=c c out out+=c c out out=n-out n-out out c=0 0 c n=int(input()) int(input()) n s=list(input()) list(input()) s c+=1 1 c
n=int(input())
s=list(input())
c=0
out=0
for i in range(0,n-1):
    if s[i]==s[i+1]:
        c+=1
    else:
        out+=c
        c=0
out+=c
out=n-out
print(out)