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