n=int(input())
s=input()
judge=''
for i in range(n):
    if s[i]==judge:
        n-=1
    judge=s[i]

print(n) n=int(input()) n int(input()) int input() input s=input() s input() input judge='' judge '' for i in range(n):
    if s[i]==judge:
        n-=1
    judge=s[i] i range(n) range n if s[i]==judge:
        n-=1
     s[i]==judge s[i] s i judge n-=1 n 1 judge=s[i] judge s[i] s i print(n) print n n-=1 1 n judge=s[i] s[i] judge judge='' '' judge s=input() input() s n=int(input()) int(input()) n
n=int(input())
s=input()
judge=''
for i in range(n):
    if s[i]==judge:
        n-=1
    judge=s[i]

print(n)