N = int(input())
S = input()
i = 0
count = 1
con_s = 0

for i in range(N-1):
  if S[i] in S[i+1]:
    pass
  else:
    count += 1
    
print(count) N = int(input()) N int(input()) int input() input S = input() S input() input i = 0 i 0 count = 1 count 1 con_s = 0 con_s 0 for i in range(N-1):
  if S[i] in S[i+1]:
    pass
  else:
    count += 1
     i range(N-1) range N-1 N 1 if S[i] in S[i+1]:
    pass
  else:
    count += 1
     S[i] in S[i+1] S[i] S i S[i+1] S i+1 i 1 count += 1 count 1 print(count) print count count = 1 1 count N = int(input()) int(input()) N con_s = 0 0 con_s count += 1 1 count S = input() input() S i = 0 0 i
N = int(input())
S = input()
i = 0
count = 1
con_s = 0

for i in range(N-1):
  if S[i] in S[i+1]:
    pass
  else:
    count += 1
    
print(count)