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