line = readlines
len = line.length
i = 0

while i < len
    line[i] = line[i].chomp
    i += 1
end

N = line[0].to_i
S = line[1]

ans = 0
for i in 1..N do
  if i == 1 then
    ans += 1
  elsif S[i-1] != S[i-2] then
    ans += 1
  end
end

print ans