N = int(input())
s = input()
cnt = 1
i = 1
while (i < N):
    if s[i] != s[i-1]:
        cnt += 1
    i += 1
print(cnt) N = int(input()) N int(input()) int input() input s = input() s input() input cnt = 1 cnt 1 i = 1 i 1 while (i < N):
    if s[i] != s[i-1]:
        cnt += 1
    i += 1 i < N i N 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 i += 1 i 1 print(cnt) print cnt s = input() input() s N = int(input()) int(input()) N cnt += 1 1 cnt i = 1 1 i cnt = 1 1 cnt i += 1 1 i
N = int(input())
s = input()
cnt = 1
i = 1
while (i < N):
    if s[i] != s[i-1]:
        cnt += 1
    i += 1
print(cnt)