n = int(input())
s = input()
count = 1
for i in range(n-1):
  if s[i+1]  != s[i]:
    count = count + 1
print(count) n = int(input()) n int(input()) int input() input s = input() s input() input count = 1 count 1 for i in range(n-1):
  if s[i+1]  != s[i]:
    count = count + 1 i range(n-1) range n-1 n 1 if s[i+1]  != s[i]:
    count = count + 1 s[i+1]  != s[i] s[i+1] s i+1 i 1 s[i] s i count = count + 1 count count + 1 count 1 print(count) print count count = count + 1 count + 1 count count = 1 1 count n = int(input()) int(input()) n s = input() input() s
n = int(input())
s = input()
count = 1
for i in range(n-1):
  if s[i+1]  != s[i]:
    count = count + 1
print(count)