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

    var check = str[0]
    var count = 0
    for (c in str) {
        if (check == c) {
            continue
        }
        count++
        check = c
    }
    println(count + 1)
}