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

cnt = 1
for r in range(1, n, 1):
    if s[r] != s[r-1]:
        cnt += 1

print(cnt) n = int(input()) n int(input()) int input() input s = input() s input() input cnt = 1 cnt 1 for r in range(1, n, 1):
    if s[r] != s[r-1]:
        cnt += 1 r range(1, n, 1) range 1 n 1 if s[r] != s[r-1]:
        cnt += 1 s[r] != s[r-1] s[r] s r s[r-1] s r-1 r 1 cnt += 1 cnt 1 print(cnt) print cnt s = input() input() s cnt += 1 1 cnt cnt = 1 1 cnt n = int(input()) int(input()) n
n = int(input())
s = input()

cnt = 1
for r in range(1, n, 1):
    if s[r] != s[r-1]:
        cnt += 1

print(cnt)