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