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