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

d = []
for n in range(1, N):
    if S[n-1] == S[n]:
        d.append(n)

cnt = 0
for i in d:
    i -= cnt
    del S[i]
    cnt += 1
    
print(len(S)) N = int(input()) N int(input()) int input() input S = input() S input() input S = list(S) S list(S) list S d = [] d [] for n in range(1, N):
    if S[n-1] == S[n]:
        d.append(n) n range(1, N) range 1 N if S[n-1] == S[n]:
        d.append(n) S[n-1] == S[n] S[n-1] S n-1 n 1 S[n] S n d.append(n) d.append d append n cnt = 0 cnt 0 for i in d:
    i -= cnt
    del S[i]
    cnt += 1
     i d i -= cnt i cnt del S[i] S[i] S i cnt += 1 cnt 1 print(len(S)) print len(S) len S i -= cnt cnt i N = int(input()) int(input()) N cnt += 1 1 cnt cnt = 0 0 cnt d = [] [] d S = list(S) list(S) S S = input() input() S
N = int(input())
S = input()
S = list(S)

d = []
for n in range(1, N):
    if S[n-1] == S[n]:
        d.append(n)

cnt = 0
for i in d:
    i -= cnt
    del S[i]
    cnt += 1
    
print(len(S))