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