N = int(input())
S = input()
A = []
x = 0

for i in range(N):
    A.append(S[i])

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

print(len(A) - x) N = int(input()) N int(input()) int input() input S = input() S input() input A = [] A [] x = 0 x 0 for i in range(N):
    A.append(S[i]) i range(N) range N A.append(S[i]) A.append A append S[i] S i for i in range(N):
    if i != N - 1:
        if A[i + 1] == A[i]:
            x += 1 i range(N) range N if i != N - 1:
        if A[i + 1] == A[i]:
            x += 1 i != N - 1 i N - 1 N 1 if A[i + 1] == A[i]:
            x += 1 A[i + 1] == A[i] A[i + 1] A i + 1 i 1 A[i] A i x += 1 x 1 print(len(A) - x) print len(A) - x len(A) len A x A = [] [] A N = int(input()) int(input()) N x += 1 1 x S = input() input() S x = 0 0 x
N = int(input())
S = input()
A = []
x = 0

for i in range(N):
    A.append(S[i])

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

print(len(A) - x)
