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