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

count = 0
for i in range(1, N):
    if S[i-1] != S[i]:
        count += 1

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

count = 0
for i in range(1, N):
    if S[i-1] != S[i]:
        count += 1

print(count+1)    