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