n=int(input())
a=input()
c=[]
pre=''
for x in a:
  if x!=pre:
    c.append(x)
  pre=x
print(len(c)) n=int(input()) n int(input()) int input() input a=input() a input() input c=[] c [] pre='' pre '' for x in a:
  if x!=pre:
    c.append(x)
  pre=x x a if x!=pre:
    c.append(x)
   x!=pre x pre c.append(x) c.append c append x pre=x pre x print(len(c)) print len(c) len c n=int(input()) int(input()) n pre=x x pre pre='' '' pre a=input() input() a c=[] [] c
n=int(input())
a=input()
c=[]
pre=''
for x in a:
  if x!=pre:
    c.append(x)
  pre=x
print(len(c))
