n = int(input())
s = input()
sl = list(s)
k = 0
cur = '0'
for i in range(n):
    if sl[i] == cur:
        continue
    else:
        k += 1
        cur = sl[i]
print(k) n = int(input()) n int(input()) int input() input s = input() s input() input sl = list(s) sl list(s) list s k = 0 k 0 cur = '0' cur '0' for i in range(n):
    if sl[i] == cur:
        continue
    else:
        k += 1
        cur = sl[i] i range(n) range n if sl[i] == cur:
        continue
    else:
        k += 1
        cur = sl[i] sl[i] == cur sl[i] sl i cur continue k += 1 k 1 cur = sl[i] cur sl[i] sl i print(k) print k cur = '0' '0' cur k += 1 1 k cur = sl[i] sl[i] cur s = input() input() s sl = list(s) list(s) sl k = 0 0 k n = int(input()) int(input()) n
n = int(input())
s = input()
sl = list(s)
k = 0
cur = '0'
for i in range(n):
    if sl[i] == cur:
        continue
    else:
        k += 1
        cur = sl[i]
print(k)