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

ans = ""
for i in range(N-1):
  if S[i]==S[i+1]:
    ans+=S[i]
    
print(N-len(ans))  N = int(input()) N int(input()) int input() input S = input() S input() input S = list(S) S list(S) list S ans = "" ans "" for i in range(N-1):
  if S[i]==S[i+1]:
    ans+=S[i]
     i range(N-1) range N-1 N 1 if S[i]==S[i+1]:
    ans+=S[i]
     S[i]==S[i+1] S[i] S i S[i+1] S i+1 i 1 ans+=S[i] ans S[i] S i print(N-len(ans)) print N-len(ans) N len(ans) len ans N = int(input()) int(input()) N ans = "" "" ans S = input() input() S ans+=S[i] S[i] ans S = list(S) list(S) S
N = int(input())
S = input()
S = list(S)

ans = ""
for i in range(N-1):
  if S[i]==S[i+1]:
    ans+=S[i]
    
print(N-len(ans)) 