N=int(input())
S=input()
last = S[0]
cnt = 1
for s in S[1:]:
  if last != s:
    cnt+=1
    last = s
print(cnt) N=int(input()) N int(input()) int input() input S=input() S input() input last = S[0] last S[0] S 0 cnt = 1 cnt 1 for s in S[1:]:
  if last != s:
    cnt+=1
    last = s s S[1:] S 1: 1 if last != s:
    cnt+=1
    last = s last != s last s cnt+=1 cnt 1 last = s last s print(cnt) print cnt last = s s last N=int(input()) int(input()) N last = S[0] S[0] last cnt+=1 1 cnt cnt = 1 1 cnt S=input() input() S
N=int(input())
S=input()
last = S[0]
cnt = 1
for s in S[1:]:
  if last != s:
    cnt+=1
    last = s
print(cnt)