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

for i in range(n-1):
    if s[i] == s[i+1]:
        n -= 1

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

for i in range(n-1):
    if s[i] == s[i+1]:
        n -= 1

print(n)