import std.stdio;
import std.algorithm;
import std.string;
import std.conv;

void main() {
    int n;
    string s;
    readf("%d\n%s\n", &n, &s);

    size_t count = 1;
    char prev = s[0];
    foreach (c; s) {
        if (c != prev) {
            ++count;
        }
        prev = c;
    }
    writeln(count);
}
