n = int(input())
S = input()
distinct = 1
for i in range(1, len(S)):
    if S[i-1] != S[i]:
        distinct += 1
print(distinct) n = int(input()) n int(input()) int input() input S = input() S input() input distinct = 1 distinct 1 for i in range(1, len(S)):
    if S[i-1] != S[i]:
        distinct += 1 i range(1, len(S)) range 1 len(S) len S if S[i-1] != S[i]:
        distinct += 1 S[i-1] != S[i] S[i-1] S i-1 i 1 S[i] S i distinct += 1 distinct 1 print(distinct) print distinct distinct = 1 1 distinct distinct += 1 1 distinct n = int(input()) int(input()) n S = input() input() S
n = int(input())
S = input()
distinct = 1
for i in range(1, len(S)):
    if S[i-1] != S[i]:
        distinct += 1
print(distinct)