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

S=list(S)

ans=[]
color = ''
for s in S:
    if color != s:
        ans.append(s)
        color = s
print(len(ans)) N=int(input()) N int(input()) int input() input S=input() S input() input S=list(S) S list(S) list S ans=[] ans [] color = '' color '' for s in S:
    if color != s:
        ans.append(s)
        color = s s S if color != s:
        ans.append(s)
        color = s color != s color s ans.append(s) ans.append ans append s color = s color s print(len(ans)) print len(ans) len ans color = s s color N=int(input()) int(input()) N ans=[] [] ans color = '' '' color S=input() input() S S=list(S) list(S) S
N=int(input())
S=input()

S=list(S)

ans=[]
color = ''
for s in S:
    if color != s:
        ans.append(s)
        color = s
print(len(ans))