N=int(input())
S=list(input())

a=0#色変化
for i in range(N-1):
    if not S[i]==S[i+1]:
        a=a+1
print(a+1) N=int(input()) N int(input()) int input() input S=list(input()) S list(input()) list input() input a=0 a 0 for i in range(N-1):
    if not S[i]==S[i+1]:
        a=a+1 i range(N-1) range N-1 N 1 if not S[i]==S[i+1]:
        a=a+1 not S[i]==S[i+1] S[i]==S[i+1] S[i] S i S[i+1] S i+1 i 1 a=a+1 a a+1 a 1 print(a+1) print a+1 a 1 a=a+1 a+1 a S=list(input()) list(input()) S N=int(input()) int(input()) N a=0 0 a
N=int(input())
S=list(input())

a=0#色変化
for i in range(N-1):
    if not S[i]==S[i+1]:
        a=a+1
print(a+1)