# -*- coding: utf-8 -*-

n = int(input())

s = input()

ans = 1
tmp = s[0]

for c in s:
    if tmp != c:
        ans += 1
        tmp = c

print(ans) n = int(input()) n int(input()) int input() input s = input() s input() input ans = 1 ans 1 tmp = s[0] tmp s[0] s 0 for c in s:
    if tmp != c:
        ans += 1
        tmp = c c s if tmp != c:
        ans += 1
        tmp = c tmp != c tmp c ans += 1 ans 1 tmp = c tmp c print(ans) print ans tmp = s[0] s[0] tmp n = int(input()) int(input()) n ans = 1 1 ans tmp = c c tmp s = input() input() s ans += 1 1 ans
# -*- coding: utf-8 -*-

n = int(input())

s = input()

ans = 1
tmp = s[0]

for c in s:
    if tmp != c:
        ans += 1
        tmp = c

print(ans)
