n = int(input())
s = 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 = input() s 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 cnt = 0 0 cnt n = int(input()) int(input()) n cnt += 1 1 cnt s = input() input() s
n = int(input())
s = input()
cnt = 0
for i in range(n-1):
    if s[i] == s[i+1]:
        cnt += 1
print(n-cnt)