N = int(input())
sList = list(input())
count = 0
tmp = ''
for s in sList:
    if(s != tmp):
        count += 1
        tmp = s

print (count) N = int(input()) N int(input()) int input() input sList = list(input()) sList list(input()) list input() input count = 0 count 0 tmp = '' tmp '' for s in sList:
    if(s != tmp):
        count += 1
        tmp = s s sList if(s != tmp):
        count += 1
        tmp = s s != tmp s tmp count += 1 count 1 tmp = s tmp s print (count) print count sList = list(input()) list(input()) sList count += 1 1 count tmp = s s tmp tmp = '' '' tmp N = int(input()) int(input()) N count = 0 0 count
N = int(input())
sList = list(input())
count = 0
tmp = ''
for s in sList:
    if(s != tmp):
        count += 1
        tmp = s

print (count)
