N = int(input())
S = input()
res = 0

f = S[0]

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

f = S[0]

for i in range(N):
  if S[i] != f:
    f = S[i]
    res += 1
    
print(res+1)