N = int(input())
S = str(input())
count = 1

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

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

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

print(count)