N = int(input())
S = list(input())

while(True):
    count = 0
    for i in range(len(S) - 1, 0, -1):
        if S[i] == S[i-1]:
            S.pop(i)
            count += 1
    if count == 0: break
print(len(S)) N = int(input()) N int(input()) int input() input S = list(input()) S list(input()) list input() input while(True):
    count = 0
    for i in range(len(S) - 1, 0, -1):
        if S[i] == S[i-1]:
            S.pop(i)
            count += 1
    if count == 0: break True count = 0 count 0 for i in range(len(S) - 1, 0, -1):
        if S[i] == S[i-1]:
            S.pop(i)
            count += 1
     i range(len(S) - 1, 0, -1) range len(S) - 1 len(S) len S 1 0 -1 if S[i] == S[i-1]:
            S.pop(i)
            count += 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 count += 1 count 1 if count == 0: b count == 0 count 0 print(len(S)) print len(S) len S S = list(input()) list(input()) S N = int(input()) int(input()) N count += 1 1 count count = 0 0 count
N = int(input())
S = list(input())

while(True):
    count = 0
    for i in range(len(S) - 1, 0, -1):
        if S[i] == S[i-1]:
            S.pop(i)
            count += 1
    if count == 0: break
print(len(S))