N = int(input())
S = list(input())
n = 1
for i in range(1,N):
    if S[i] == S[i-1]:
        pass
    else:
        n += 1
print(n) N = int(input()) N int(input()) int input() input S = list(input()) S list(input()) list input() input n = 1 n 1 for i in range(1,N):
    if S[i] == S[i-1]:
        pass
    else:
        n += 1 i range(1,N) range 1 N if S[i] == S[i-1]:
        pass
    else:
        n += 1 S[i] == S[i-1] S[i] S i S[i-1] S i-1 i 1 n += 1 n 1 print(n) print n n = 1 1 n n += 1 1 n N = int(input()) int(input()) N S = list(input()) list(input()) S
N = int(input())
S = list(input())
n = 1
for i in range(1,N):
    if S[i] == S[i-1]:
        pass
    else:
        n += 1
print(n)