import numpy as np

n = int(eval(input()))

s = [ord(i) for i in eval(input())]

print((np.sum(np.diff(s)!=0)+1))
n = int(eval(input()))

s = eval(input())

t = s[0]

c = 1

for i in s:

    if t != i:

        t = i

        c += 1

print(c)

import numpy as np

n = int(eval(input()))
s = [ord(i) for i in eval(input())]
print((np.sum(np.diff(s) != 0) + 1))

n = int(eval(input()))
s = eval(input())
t = s[0]
c = 1
for i in s:
    if t != i:
        t = i
        c += 1
print(c)

-import numpy as np - -s = [ord(i) for i in eval(input())] -print((np.sum(np.diff(s) != 0) + 1)) +s = eval(input()) +t = s[0] +c = 1 +for i in s: +    if t != i: +        t = i +        c += 1 +print(c)