n=int(eval(input()))

l=list(eval(input()))

l1=[l[0]]

for i in range(1,n):

  if(l[i]!=l1[len(l1)-1]):

    l1.append(l[i])

print((len(l1)))
n=int(eval(input()))

s=eval(input())

c=1

for i in range(1,n):

  if(s[i]!=s[i-1]):

    c+=1

print(c)
n = int(eval(input()))
l = list(eval(input()))
l1 = [l[0]]
for i in range(1, n):
    if l[i] != l1[len(l1) - 1]:
        l1.append(l[i])
print((len(l1)))

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

-l = list(eval(input())) -l1 = [l[0]] +s = eval(input()) +c = 1 -    if l[i] != l1[len(l1) - 1]: -        l1.append(l[i]) -print((len(l1))) +    if s[i] != s[i - 1]: +        c += 1 +print(c)