object Main {
  def main(args: Array[String]): Unit = {
    val sc = new java.util.Scanner(System.in)
    val n = sc.nextInt
    val s = sc.next
    sc.close

    println(s.replaceAll("""(.)\1+""", "_").length)
  }
}