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