N=int(input())
S=list(input())
if N == 1:
  print(1)
if N>=2:
  if S[0] == S[1]:
    S[0]==" "
  for i in range(1,N):
    if S[i-1]==S[i]:
      S[i-1]=" "
  A=[]
  for i in range(N):
        if S[i]!=" ":
              A.append(S[i])
  print(len(A)) N=int(input()) N int(input()) int input() input S=list(input()) S list(input()) list input() input if N == 1:
  print(1) N == 1 N 1 print(1) print 1 if N>=2:
  if S[0] == S[1]:
    S[0]==" "
  for i in range(1,N):
    if S[i-1]==S[i]:
      S[i-1]=" "
  A=[]
  for i in range(N):
        if S[i]!=" ":
              A.append(S[i])
  print(len(A)) N>=2 N 2 if S[0] == S[1]:
    S[0]==" "
   S[0] == S[1] S[0] S 0 S[1] S 1 S[0]==" " S[0] S 0 " " for i in range(1,N):
    if S[i-1]==S[i]:
      S[i-1]=" "
   i range(1,N) range 1 N if S[i-1]==S[i]:
      S[i-1]=" "
   S[i-1]==S[i] S[i-1] S i-1 i 1 S[i] S i S[i-1]=" " S[i-1] S i-1 i 1 " " A=[] A [] for i in range(N):
        if S[i]!=" ":
              A.append(S[i])
   i range(N) range N if S[i]!=" ":
              A.append(S[i])
   S[i]!=" " S[i] S i " " A.append(S[i]) A.append A append S[i] S i print(len(A)) print len(A) len A A=[] [] A N=int(input()) int(input()) N S=list(input()) list(input()) S
N=int(input())
S=list(input())
if N == 1:
  print(1)
if N>=2:
  if S[0] == S[1]:
    S[0]==" "
  for i in range(1,N):
    if S[i-1]==S[i]:
      S[i-1]=" "
  A=[]
  for i in range(N):
        if S[i]!=" ":
              A.append(S[i])
  print(len(A))