fun main(args: Array<String>) {
    abc143c()
}

fun abc143c() {
    val n = readLine()!!.toInt()
    val s = readLine()!!

    var cnt = 1
    for (i in 1..s.lastIndex) if (s[i - 1] != s[i]) cnt++

    println(cnt)
}
