N = int(input())
S = input()
print(sum(S[i]!=S[i+1] for i in range(N-1))+1) N = int(input()) N int(input()) int input() input S = input() S input() input print(sum(S[i]!=S[i+1] for i in range(N-1))+1) print sum(S[i]!=S[i+1] for i in range(N-1))+1 sum(S[i]!=S[i+1] for i in range(N-1)) sum S[i]!=S[i+1] S[i] S i S[i+1] S i+1 i 1 1 N = int(input()) int(input()) N S = input() input() S
N = int(input())
S = input()
print(sum(S[i]!=S[i+1] for i in range(N-1))+1)