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