N = int(input())
S = input()

judge = [1]*N

for i in range(1,N):
    if S[i-1] == S[i]:
        judge[i] = 0

print(sum(judge)) N = int(input()) N int(input()) int input() input S = input() S input() input judge = [1]*N judge [1]*N [1] 1 N for i in range(1,N):
    if S[i-1] == S[i]:
        judge[i] = 0 i range(1,N) range 1 N if S[i-1] == S[i]:
        judge[i] = 0 S[i-1] == S[i] S[i-1] S i-1 i 1 S[i] S i judge[i] = 0 judge[i] judge i 0 print(sum(judge)) print sum(judge) sum judge S = input() input() S N = int(input()) int(input()) N judge = [1]*N [1]*N judge
N = int(input())
S = input()

judge = [1]*N

for i in range(1,N):
    if S[i-1] == S[i]:
        judge[i] = 0

print(sum(judge))