fun main(args: Array<String>) {
  val n = readLine()!!.toInt()
  val b = readLine()!!
  println(weiwei(b)+1)
}

tailrec fun weiwei(list :String, c :Int = 0, s: Int = 0) : Int {
    if (list.length == s+1) {
        return c
    }

    val v = if (list[s] == list[s+1]) { 0 } else { 1 }
    return weiwei(list, c + v, s + 1)
}