N=int(input())
S=input()
x=1
for i in range(0,N):
    if i<N-1 and S[i]!=S[i+1] :
        x=x+1
print(x)

 N=int(input()) N int(input()) int input() input S=input() S input() input x=1 x 1 for i in range(0,N):
    if i<N-1 and S[i]!=S[i+1] :
        x=x+1 i range(0,N) range 0 N if i<N-1 and S[i]!=S[i+1] :
        x=x+1 i<N-1 and S[i]!=S[i+1] i<N-1 i N-1 N 1 S[i]!=S[i+1] S[i] S i S[i+1] S i+1 i 1 x=x+1 x x+1 x 1 print(x) print x x=1 1 x N=int(input()) int(input()) N S=input() input() S x=x+1 x+1 x
N=int(input())
S=input()
x=1
for i in range(0,N):
    if i<N-1 and S[i]!=S[i+1] :
        x=x+1
print(x)


