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

cnt = 1
col = S[0]

for c in S:
    if(c != col):
        cnt += 1
        col = c

print(cnt) N = int(input()) N int(input()) int input() input S = input() S input() input cnt = 1 cnt 1 col = S[0] col S[0] S 0 for c in S:
    if(c != col):
        cnt += 1
        col = c c S if(c != col):
        cnt += 1
        col = c c != col c col cnt += 1 cnt 1 col = c col c print(cnt) print cnt N = int(input()) int(input()) N col = c c col cnt = 1 1 cnt cnt += 1 1 cnt S = input() input() S col = S[0] S[0] col
N = int(input())
S = input()

cnt = 1
col = S[0]

for c in S:
    if(c != col):
        cnt += 1
        col = c

print(cnt)