n = int(input())
s = input()

s = s + '@'
prev = s[0]
ans = 0
for i in range(1, n + 1):
    if s[i] != prev:
        ans += 1
    prev = s[i]
print(ans) n = int(input()) n int(input()) int input() input s = input() s input() input s = s + '@' s s + '@' s '@' prev = s[0] prev s[0] s 0 ans = 0 ans 0 for i in range(1, n + 1):
    if s[i] != prev:
        ans += 1
    prev = s[i] i range(1, n + 1) range 1 n + 1 n 1 if s[i] != prev:
        ans += 1
     s[i] != prev s[i] s i prev ans += 1 ans 1 prev = s[i] prev s[i] s i print(ans) print ans s = input() input() s prev = s[i] s[i] prev prev = s[0] s[0] prev ans = 0 0 ans s = s + '@' s + '@' s n = int(input()) int(input()) n ans += 1 1 ans
n = int(input())
s = input()

s = s + '@'
prev = s[0]
ans = 0
for i in range(1, n + 1):
    if s[i] != prev:
        ans += 1
    prev = s[i]
print(ans)
