n=int(input())
s=(input())

v=s[0]
count=1
for i in range(n):
  if s[i] == v:
    continue
  v = s[i]
  count += 1
print(count) n=int(input()) n int(input()) int input() input s=(input()) s input() input v=s[0] v s[0] s 0 count=1 count 1 for i in range(n):
  if s[i] == v:
    continue
  v = s[i]
  count += 1 i range(n) range n if s[i] == v:
    continue
   s[i] == v s[i] s i v continue v = s[i] v s[i] s i count += 1 count 1 print(count) print count v = s[i] s[i] v count=1 1 count count += 1 1 count n=int(input()) int(input()) n s=(input()) input() s v=s[0] s[0] v
n=int(input())
s=(input())

v=s[0]
count=1
for i in range(n):
  if s[i] == v:
    continue
  v = s[i]
  count += 1
print(count)