N = int(input())
a = list(input())
count = 1
for i in range(N):
  if i>0:
    if a[i-1]==a[i]:
      pass
    elif a[i-1]!=a[i]:
      count+=1
      
print(count) N = int(input()) N int(input()) int input() input a = list(input()) a list(input()) list input() input count = 1 count 1 for i in range(N):
  if i>0:
    if a[i-1]==a[i]:
      pass
    elif a[i-1]!=a[i]:
      count+=1
       i range(N) range N if i>0:
    if a[i-1]==a[i]:
      pass
    elif a[i-1]!=a[i]:
      count+=1
       i>0 i 0 if a[i-1]==a[i]:
      pass
    elif a[i-1]!=a[i]:
      count+=1
       a[i-1]==a[i] a[i-1] a i-1 i 1 a[i] a i elif a[i-1]!=a[i]:
      count+=1
       a[i-1]!=a[i] a[i-1] a i-1 i 1 a[i] a i count+=1 count 1 print(count) print count a = list(input()) list(input()) a N = int(input()) int(input()) N count = 1 1 count count+=1 1 count
N = int(input())
a = list(input())
count = 1
for i in range(N):
  if i>0:
    if a[i-1]==a[i]:
      pass
    elif a[i-1]!=a[i]:
      count+=1
      
print(count)