fun main(args: Array<String>) {
    val N = readLine()!!.toInt()
	println(weiwei(readLine()!!)+1)
}
 
tailrec fun weiwei(list :String, c :Int = 0) : Int {
    if (list.length == 1) {
        return c
    }

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