local n = io.read("*n")
io.read("*l")
local str = io.read("*n")
local ans = 1
for i = 1, #str - 1 do
  if string.sub(str, i, i) ~= string.sub(str, i+1, i+1) then
    ans = ans + 1
  end
end
print(ans)