n = int(input())
S = input()

res = 1
tmp = S[0]
for i in range(1,n):
  if S[i] != tmp:
    res += 1
  tmp = S[i]
print(res) n = int(input()) n int(input()) int input() input S = input() S input() input res = 1 res 1 tmp = S[0] tmp S[0] S 0 for i in range(1,n):
  if S[i] != tmp:
    res += 1
  tmp = S[i] i range(1,n) range 1 n if S[i] != tmp:
    res += 1
   S[i] != tmp S[i] S i tmp res += 1 res 1 tmp = S[i] tmp S[i] S i print(res) print res tmp = S[0] S[0] tmp res += 1 1 res tmp = S[i] S[i] tmp S = input() input() S n = int(input()) int(input()) n res = 1 1 res
n = int(input())
S = input()

res = 1
tmp = S[0]
for i in range(1,n):
  if S[i] != tmp:
    res += 1
  tmp = S[i]
print(res)
