N = int(input())
S = list(input())
check = S[0]
count =1
for i in range(1,N):
    if(check!=S[i]):
        check=S[i]
        count +=1
print(count) N = int(input()) N int(input()) int input() input S = list(input()) S list(input()) list input() input check = S[0] check S[0] S 0 count =1 count 1 for i in range(1,N):
    if(check!=S[i]):
        check=S[i]
        count +=1 i range(1,N) range 1 N if(check!=S[i]):
        check=S[i]
        count +=1 check!=S[i] check S[i] S i check=S[i] check S[i] S i count +=1 count 1 print(count) print count count +=1 1 count N = int(input()) int(input()) N S = list(input()) list(input()) S check=S[i] S[i] check check = S[0] S[0] check count =1 1 count
N = int(input())
S = list(input())
check = S[0]
count =1
for i in range(1,N):
    if(check!=S[i]):
        check=S[i]
        count +=1
print(count)