N = int(input()) S = input() now = -1 ans = 0 for i in S: if now != i: ans += 1 now = i print(ans)