N = int(input())
S = input()
now = -1
for s in S:
    if now == s:
        N -=1
    now = s
print(N) N = int(input()) N int(input()) int input() input S = input() S input() input now = -1 now -1 for s in S:
    if now == s:
        N -=1
    now = s s S if now == s:
        N -=1
     now == s now s N -=1 N 1 now = s now s print(N) print N S = input() input() S N = int(input()) int(input()) N now = s s now now = -1 -1 now N -=1 1 N
N = int(input())
S = input()
now = -1
for s in S:
    if now == s:
        N -=1
    now = s
print(N)