N=int(input())
S = input()
List = list(S)
resList = [S[0]]
for i in range(1,N):
  if List[i] == List[i-1]:
    pass
  else:
    resList.append(List[i])
print(len(resList)) N=int(input()) N int(input()) int input() input S = input() S input() input List = list(S) List list(S) list S resList = [S[0]] resList [S[0]] S[0] S 0 for i in range(1,N):
  if List[i] == List[i-1]:
    pass
  else:
    resList.append(List[i]) i range(1,N) range 1 N if List[i] == List[i-1]:
    pass
  else:
    resList.append(List[i]) List[i] == List[i-1] List[i] List i List[i-1] List i-1 i 1 resList.append(List[i]) resList.append resList append List[i] List i print(len(resList)) print len(resList) len resList N=int(input()) int(input()) N S = input() input() S List = list(S) list(S) List resList = [S[0]] [S[0]] resList
N=int(input())
S = input()
List = list(S)
resList = [S[0]]
for i in range(1,N):
  if List[i] == List[i-1]:
    pass
  else:
    resList.append(List[i])
print(len(resList))