#include <iostream>
#include<string>
#include<string.h>

using namespace std;

void main()
{
	int n;
	string s;
	int counter = 1;
	cin >> n >> s;
	for (int i = 1; i < n; i++)
	{
		if (s[i] != s[i - 1])
		{
			counter++;
		}
	}
	cout << counter;
}