N = int(input())
S = input().strip()
cnt = 1
for i in range(1,N):
    if S[i]!=S[i-1]:
        cnt += 1
print(cnt) N = int(input()) N int(input()) int input() input S = input().strip() S input().strip() ().strip () input strip cnt = 1 cnt 1 for i in range(1,N):
    if S[i]!=S[i-1]:
        cnt += 1 i range(1,N) range 1 N if S[i]!=S[i-1]:
        cnt += 1 S[i]!=S[i-1] S[i] S i S[i-1] S i-1 i 1 cnt += 1 cnt 1 print(cnt) print cnt cnt = 1 1 cnt cnt += 1 1 cnt S = input().strip() input().strip() S N = int(input()) int(input()) N
N = int(input())
S = input().strip()
cnt = 1
for i in range(1,N):
    if S[i]!=S[i-1]:
        cnt += 1
print(cnt)