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

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

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

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

print(ANS + 1)