N=int(input())
S=input()
now=0
num=0
for char in S:
    if char!=now:
        num+=1
        now=char
print(num) N=int(input()) N int(input()) int input() input S=input() S input() input now=0 now 0 num=0 num 0 for char in S:
    if char!=now:
        num+=1
        now=char char S if char!=now:
        num+=1
        now=char char!=now char now num+=1 num 1 now=char now char print(num) print num num=0 0 num S=input() input() S now=char char now num+=1 1 num N=int(input()) int(input()) N now=0 0 now
N=int(input())
S=input()
now=0
num=0
for char in S:
    if char!=now:
        num+=1
        now=char
print(num)