n = int(input())
s = str(input())
s += "A"
q = s[0]
ans = 0
for i in range(n+1):
  if(q==s[i]):
    None
  else:
    ans += 1
    q = s[i]
print(ans) n = int(input()) n int(input()) int input() input s = str(input()) s str(input()) str input() input s += "A" s "A" q = s[0] q s[0] s 0 ans = 0 ans 0 for i in range(n+1):
  if(q==s[i]):
    None
  else:
    ans += 1
    q = s[i] i range(n+1) range n+1 n 1 if(q==s[i]):
    None
  else:
    ans += 1
    q = s[i] q==s[i] q s[i] s i None ans += 1 ans 1 q = s[i] q s[i] s i print(ans) print ans q = s[i] s[i] q s += "A" "A" s q = s[0] s[0] q n = int(input()) int(input()) n ans = 0 0 ans s = str(input()) str(input()) s ans += 1 1 ans
n = int(input())
s = str(input())
s += "A"
q = s[0]
ans = 0
for i in range(n+1):
  if(q==s[i]):
    None
  else:
    ans += 1
    q = s[i]
print(ans)
