function Main(input) {
  input = input.split("\n");
  var N = input[0];
  var S = input[1].split("");
  var Nsum = N;
  var Mem = 0;
  for(var i = 0; i < N ;i++){
    if(S[i] == Mem){
      Nsum--;
    }
    Mem = S[i];
  }
  
console.log(Nsum);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
