N = int(input())
slimes = input()

count = 1
current = None

for s in slimes:
  if current is None:
    current = s
    next
  if current != s:
    count +=1
  current = s
    
print(count)
 N = int(input()) N int(input()) int input() input slimes = input() slimes input() input count = 1 count 1 current = None current None for s in slimes:
  if current is None:
    current = s
    next
  if current != s:
    count +=1
  current = s
     s slimes if current is None:
    current = s
    next
   current is None current None current = s current s next if current != s:
    count +=1
   current != s current s count +=1 count 1 current = s current s print(count) print count N = int(input()) int(input()) N count +=1 1 count current = s s current count = 1 1 count slimes = input() input() slimes current = None None current current = s s current
N = int(input())
slimes = input()

count = 1
current = None

for s in slimes:
  if current is None:
    current = s
    next
  if current != s:
    count +=1
  current = s
    
print(count)

