N = int(input())
s = input()
ans = 1
for i in range(1, len(s)):
  if s[i-1] != s[i]:
    ans += 1
print(ans) N = int(input()) N int(input()) int input() input s = input() s input() input ans = 1 ans 1 for i in range(1, len(s)):
  if s[i-1] != s[i]:
    ans += 1 i range(1, len(s)) range 1 len(s) len s if s[i-1] != s[i]:
    ans += 1 s[i-1] != s[i] s[i-1] s i-1 i 1 s[i] s i ans += 1 ans 1 print(ans) print ans ans += 1 1 ans s = input() input() s N = int(input()) int(input()) N ans = 1 1 ans
N = int(input())
s = input()
ans = 1
for i in range(1, len(s)):
  if s[i-1] != s[i]:
    ans += 1
print(ans)