N = int(input()) S = input() curr = S[0] ans = 1 for i in range(N - 1): if curr != S[i + 1]: curr = S[i + 1] ans += 1 print(ans)