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

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