f=input;f()

import itertools as it

print((len(list(it.groupby(f())))))
f=input;n=int(f());s=f()

print((1+sum(s[i]!=s[i-1] for i in range(1,n))))
f = input
f()
import itertools as it

print((len(list(it.groupby(f())))))

f = input
n = int(f())
s = f()
print((1 + sum(s[i] != s[i - 1] for i in range(1, n))))

-f() -import itertools as it - -print((len(list(it.groupby(f()))))) +n = int(f()) +s = f() +print((1 + sum(s[i] != s[i - 1] for i in range(1, n))))