N = int(input())
S = list(input())
cn = 1

for i in range(N-1):
    if S[i] == S[i+1]:
        continue
    else:
        cn = cn + 1
        
print(cn) N = int(input()) N int(input()) int input() input S = list(input()) S list(input()) list input() input cn = 1 cn 1 for i in range(N-1):
    if S[i] == S[i+1]:
        continue
    else:
        cn = cn + 1
         i range(N-1) range N-1 N 1 if S[i] == S[i+1]:
        continue
    else:
        cn = cn + 1
         S[i] == S[i+1] S[i] S i S[i+1] S i+1 i 1 continue cn = cn + 1 cn cn + 1 cn 1 print(cn) print cn cn = 1 1 cn S = list(input()) list(input()) S N = int(input()) int(input()) N cn = cn + 1 cn + 1 cn
N = int(input())
S = list(input())
cn = 1

for i in range(N-1):
    if S[i] == S[i+1]:
        continue
    else:
        cn = cn + 1
        
print(cn)