n = int(input())
s = input()
ans = 0
pc = ''
for i in s:
    if i != pc:
        ans += 1
    pc = i
print(ans) n = int(input()) n int(input()) int input() input s = input() s input() input ans = 0 ans 0 pc = '' pc '' for i in s:
    if i != pc:
        ans += 1
    pc = i i s if i != pc:
        ans += 1
     i != pc i pc ans += 1 ans 1 pc = i pc i print(ans) print ans n = int(input()) int(input()) n ans += 1 1 ans pc = i i pc pc = '' '' pc ans = 0 0 ans s = input() input() s
n = int(input())
s = input()
ans = 0
pc = ''
for i in s:
    if i != pc:
        ans += 1
    pc = i
print(ans)