N = int(input())
S = str(input())
cnt = 1

for i in range(1,N):
    if S[i] == S[i-1]:
        pass
    else:
        cnt += 1

print(cnt) N = int(input()) N int(input()) int input() input S = str(input()) S str(input()) str input() input cnt = 1 cnt 1 for i in range(1,N):
    if S[i] == S[i-1]:
        pass
    else:
        cnt += 1 i range(1,N) range 1 N if S[i] == S[i-1]:
        pass
    else:
        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 N = int(input()) int(input()) N S = str(input()) str(input()) S cnt += 1 1 cnt cnt = 1 1 cnt
N = int(input())
S = str(input())
cnt = 1

for i in range(1,N):
    if S[i] == S[i-1]:
        pass
    else:
        cnt += 1

print(cnt)
