N = int(input())
S = input()

counter = 0
past = S[0]
for s in S[1:]:
    
    if not s==past:
        counter += 1
        past = s
    
print(counter+1) N = int(input()) N int(input()) int input() input S = input() S input() input counter = 0 counter 0 past = S[0] past S[0] S 0 for s in S[1:]:
    
    if not s==past:
        counter += 1
        past = s
     s S[1:] S 1: 1 if not s==past:
        counter += 1
        past = s
     not s==past s==past s past counter += 1 counter 1 past = s past s print(counter+1) print counter+1 counter 1 past = S[0] S[0] past counter = 0 0 counter S = input() input() S past = s s past counter += 1 1 counter N = int(input()) int(input()) N
N = int(input())
S = input()

counter = 0
past = S[0]
for s in S[1:]:
    
    if not s==past:
        counter += 1
        past = s
    
print(counter+1)