n = gets.chomp!.to_i
s = gets.chomp!

#s = "aabbbbaaca"
ls = s.split("")
#p ls
i = 0

def slime(ls)
  count = 0
  for i in 0..ls.length-1 do
    if i == ls.length-1
      return count
    end
    if ls[i] != ls[i+1]
      count += 1
    end
  end
  return count
end


p slime(ls) + 1