N = int(input())
S = input() + '*'
ret = 0
for s1, s2 in zip(S, S[1:]):
    if s1 != s2:
        ret += 1
print(ret) N = int(input()) N int(input()) int input() input S = input() + '*' S input() + '*' input() input '*' ret = 0 ret 0 for s1, s2 in zip(S, S[1:]):
    if s1 != s2:
        ret += 1 s1 s2 zip(S, S[1:]) zip S S[1:] S 1: 1 if s1 != s2:
        ret += 1 s1 != s2 s1 s2 ret += 1 ret 1 print(ret) print ret N = int(input()) int(input()) N ret = 0 0 ret ret += 1 1 ret S = input() + '*' input() + '*' S
N = int(input())
S = input() + '*'
ret = 0
for s1, s2 in zip(S, S[1:]):
    if s1 != s2:
        ret += 1
print(ret)
