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