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

cnt = 1
last = S[0]
for s in S:
    if last == s:
        continue
    else:
        cnt += 1
        last = s
print(cnt) N = int(input()) N int(input()) int input() input S = input() S input() input cnt = 1 cnt 1 last = S[0] last S[0] S 0 for s in S:
    if last == s:
        continue
    else:
        cnt += 1
        last = s s S if last == s:
        continue
    else:
        cnt += 1
        last = s last == s last s continue cnt += 1 cnt 1 last = s last s print(cnt) print cnt N = int(input()) int(input()) N last = S[0] S[0] last S = input() input() S cnt += 1 1 cnt last = s s last cnt = 1 1 cnt
N = int(input())
S = input()

cnt = 1
last = S[0]
for s in S:
    if last == s:
        continue
    else:
        cnt += 1
        last = s
print(cnt)