object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val slimeCount :Int = sc.nextInt()
  val slimes :String = sc.next()
  val slimeList :List[Char] = slimes.toCharArray.toList

  def go(count: Int)(slimes: List[Char]): Int = slimes match {
    case h::t if t.isEmpty => count
    case h::t if h == t.head => go(count)(t)
    case h::t => go(count + 1)(t)
  }

  println(go(1)(slimeList))
}