fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    val s = readLine()!!

    var sum = 1
    var current = s[0]
    for (i in 1 until s.length) {
        if (current != s[i]) {
            current = s[i]
            sum++
        }
    }
    println(sum)
}


