N = int(input())
S = list(input())
S.append("test")
i = 0
while N > 0:
    if S[i] == S[i+1]:
        S.pop(i)
        i = i - 1
    i = i + 1
    N = N - 1
print(len(S)-1) N = int(input()) N int(input()) int input() input S = list(input()) S list(input()) list input() input S.append("test") S.append S append "test" i = 0 i 0 while N > 0:
    if S[i] == S[i+1]:
        S.pop(i)
        i = i - 1
    i = i + 1
    N = N - 1 N > 0 N 0 if S[i] == S[i+1]:
        S.pop(i)
        i = i - 1
     S[i] == S[i+1] S[i] S i S[i+1] S i+1 i 1 S.pop(i) S.pop S pop i i = i - 1 i i - 1 i 1 i = i + 1 i i + 1 i 1 N = N - 1 N N - 1 N 1 print(len(S)-1) print len(S)-1 len(S) len S 1 i = i - 1 i - 1 i i = i + 1 i + 1 i N = int(input()) int(input()) N S = list(input()) list(input()) S N = N - 1 N - 1 N i = 0 0 i
N = int(input())
S = list(input())
S.append("test")
i = 0
while N > 0:
    if S[i] == S[i+1]:
        S.pop(i)
        i = i - 1
    i = i + 1
    N = N - 1
print(len(S)-1)
