n = int(input())
word = input()
answer = 0
for i in range(n-1):
    if word[i] != word[i+1]:
        answer += 1
print(answer+1) n = int(input()) n int(input()) int input() input word = input() word input() input answer = 0 answer 0 for i in range(n-1):
    if word[i] != word[i+1]:
        answer += 1 i range(n-1) range n-1 n 1 if word[i] != word[i+1]:
        answer += 1 word[i] != word[i+1] word[i] word i word[i+1] word i+1 i 1 answer += 1 answer 1 print(answer+1) print answer+1 answer 1 answer = 0 0 answer answer += 1 1 answer n = int(input()) int(input()) n word = input() input() word
n = int(input())
word = input()
answer = 0
for i in range(n-1):
    if word[i] != word[i+1]:
        answer += 1
print(answer+1)