from sys import stdin

from itertools import groupby



n = int(stdin.readline().rstrip())

s = stdin.readline().rstrip()

l = [x for x in s]

new = []



for key, value in groupby(l):

    new.append(key)



print((len(new)))

from sys import stdin

from itertools import groupby



n = int(stdin.readline().rstrip())

s = stdin.readline().rstrip()

new = []



for key, value in groupby(s):

    new.append(key)



print((len(new)))
from sys import stdin
from itertools import groupby

n = int(stdin.readline().rstrip())
s = stdin.readline().rstrip()
l = [x for x in s]
new = []
for key, value in groupby(l):
    new.append(key)
print((len(new)))

from sys import stdin
from itertools import groupby

n = int(stdin.readline().rstrip())
s = stdin.readline().rstrip()
new = []
for key, value in groupby(s):
    new.append(key)
print((len(new)))

-l = [x for x in s] -for key, value in groupby(l): +for key, value in groupby(s):