open System

let N = Console.ReadLine() |> int
let S = Console.ReadLine() |> string

let mutable slimes = 1
let mutable x = S.[0]

for i in [ 1 .. N-1 ] do
    if x <> S.[i] then
        x <- S.[i]
        slimes <- slimes + 1

printfn "%d" slimes