n = int(input())
s = input()
ans = [s[0]]
for i in range(1,n):
  if s[i] != ans[-1]:
    ans.append(s[i])
  else:
    pass
  
print(len(ans)) n = int(input()) n int(input()) int input() input s = input() s input() input ans = [s[0]] ans [s[0]] s[0] s 0 for i in range(1,n):
  if s[i] != ans[-1]:
    ans.append(s[i])
  else:
    pass
   i range(1,n) range 1 n if s[i] != ans[-1]:
    ans.append(s[i])
  else:
    pass
   s[i] != ans[-1] s[i] s i ans[-1] ans -1 ans.append(s[i]) ans.append ans append s[i] s i print(len(ans)) print len(ans) len ans ans = [s[0]] [s[0]] ans n = int(input()) int(input()) n s = input() input() s
n = int(input())
s = input()
ans = [s[0]]
for i in range(1,n):
  if s[i] != ans[-1]:
    ans.append(s[i])
  else:
    pass
  
print(len(ans))