n = int(input())
slimes = input()
fusion = [slimes[0]]

cnt = 0

for i in range(1,n):
    if fusion[cnt] != slimes[i]:
        fusion.append(slimes[i])
        cnt += 1

print(cnt+1) n = int(input()) n int(input()) int input() input slimes = input() slimes input() input fusion = [slimes[0]] fusion [slimes[0]] slimes[0] slimes 0 cnt = 0 cnt 0 for i in range(1,n):
    if fusion[cnt] != slimes[i]:
        fusion.append(slimes[i])
        cnt += 1 i range(1,n) range 1 n if fusion[cnt] != slimes[i]:
        fusion.append(slimes[i])
        cnt += 1 fusion[cnt] != slimes[i] fusion[cnt] fusion cnt slimes[i] slimes i fusion.append(slimes[i]) fusion.append fusion append slimes[i] slimes i cnt += 1 cnt 1 print(cnt+1) print cnt+1 cnt 1 fusion = [slimes[0]] [slimes[0]] fusion slimes = input() input() slimes cnt += 1 1 cnt n = int(input()) int(input()) n cnt = 0 0 cnt
n = int(input())
slimes = input()
fusion = [slimes[0]]

cnt = 0

for i in range(1,n):
    if fusion[cnt] != slimes[i]:
        fusion.append(slimes[i])
        cnt += 1

print(cnt+1)