N = int(input())
S = input()

length = 1

for i in range(N - 1):
    if S[i] != S[i + 1]:
        length += 1

print(length)