# ABC 132 C
N = int(input())
S = str(input())
ans = 1
s = list(map(str, str(S)))

for i in range(N-1):
    if s[i] != s[i+1]:
        ans += 1
print(ans) N = int(input()) N int(input()) int input() input S = str(input()) S str(input()) str input() input ans = 1 ans 1 s = list(map(str, str(S))) s list(map(str, str(S))) list map(str, str(S)) map str str(S) str S for i in range(N-1):
    if s[i] != s[i+1]:
        ans += 1 i range(N-1) range N-1 N 1 if s[i] != s[i+1]:
        ans += 1 s[i] != s[i+1] s[i] s i s[i+1] s i+1 i 1 ans += 1 ans 1 print(ans) print ans s = list(map(str, str(S))) list(map(str, str(S))) s S = str(input()) str(input()) S ans = 1 1 ans N = int(input()) int(input()) N ans += 1 1 ans
# ABC 132 C
N = int(input())
S = str(input())
ans = 1
s = list(map(str, str(S)))

for i in range(N-1):
    if s[i] != s[i+1]:
        ans += 1
print(ans)