import io.StdIn._

object Main extends App {
  val n      = readInt()
  val string = readLine().toList

  require(1 <= n && n <= 100000)
  require(n == string.length)
  println(string.foldLeft("")((s, c) => if (s.lastOption.contains(c)) s else s + c.toString).length)
}
