N = int(input())
S = input()
S = [i for i in S]

cnt = 1
Cnt = []

for i in range(1, N):
    if S[i]==S[i-1]:
        cnt += 1
    elif S[i]!=S[i-1]:
        Cnt.append(cnt)
        cnt = 1
Cnt.append(cnt)
print(len(Cnt)) N = int(input()) N int(input()) int input() input S = input() S input() input i for i in S for i in S i S for i in S i S = [i for i in S] S [i for i in S] cnt = 1 cnt 1 Cnt = [] Cnt [] for i in range(1, N):
    if S[i]==S[i-1]:
        cnt += 1
    elif S[i]!=S[i-1]:
        Cnt.append(cnt)
        cnt = 1 i range(1, N) range 1 N if S[i]==S[i-1]:
        cnt += 1
    elif S[i]!=S[i-1]:
        Cnt.append(cnt)
        cnt = 1 S[i]==S[i-1] S[i] S i S[i-1] S i-1 i 1 cnt += 1 cnt 1 elif S[i]!=S[i-1]:
        Cnt.append(cnt)
        cnt = 1 S[i]!=S[i-1] S[i] S i S[i-1] S i-1 i 1 Cnt.append(cnt) Cnt.append Cnt append cnt cnt = 1 cnt 1 Cnt.append(cnt) Cnt.append Cnt append cnt print(len(Cnt)) print len(Cnt) len Cnt S = input() input() S cnt += 1 1 cnt Cnt = [] [] Cnt N = int(input()) int(input()) N cnt = 1 1 cnt S = [i for i in S] [i for i in S] S cnt = 1 1 cnt
N = int(input())
S = input()
S = [i for i in S]

cnt = 1
Cnt = []

for i in range(1, N):
    if S[i]==S[i-1]:
        cnt += 1
    elif S[i]!=S[i-1]:
        Cnt.append(cnt)
        cnt = 1
Cnt.append(cnt)
print(len(Cnt))