//******************************************************************************* //
'use strict'; process.stdin.resume();                                             //
process.stdin.setEncoding('utf-8');                                               //
let inputString = ''; let currentLine = 0;                                        //
process.stdin.on('data', inputStdin => { inputString += inputStdin });            //
process.stdin.on('end', () => {inputString = inputString.split('\n');// main(); }); //
//function readline() { return inputString[currentLine++]; }                        //
//******************************************************************************* //


//function main() {

    //var input = readline()
    var T = Number(readline());
    
    var s = readline();
    var m = s.replace(/(.)\1+/g, "$1")
    console.log(m.length);
    
//}