n = int(input())
s = input()

a = ""
cnt = 0
for i in range(n):
    if i==0:
        a += s[i]
        cnt += 1
    else:
        if s[i] != a[-1]:
            a += s[i]
            cnt += 1
print(cnt) n = int(input()) n int(input()) int input() input s = input() s input() input a = "" a "" cnt = 0 cnt 0 for i in range(n):
    if i==0:
        a += s[i]
        cnt += 1
    else:
        if s[i] != a[-1]:
            a += s[i]
            cnt += 1 i range(n) range n if i==0:
        a += s[i]
        cnt += 1
    else:
        if s[i] != a[-1]:
            a += s[i]
            cnt += 1 i==0 i 0 a += s[i] a s[i] s i cnt += 1 cnt 1 if s[i] != a[-1]:
            a += s[i]
            cnt += 1 s[i] != a[-1] s[i] s i a[-1] a -1 a += s[i] a s[i] s i cnt += 1 cnt 1 print(cnt) print cnt n = int(input()) int(input()) n a += s[i] s[i] a s = input() input() s cnt += 1 1 cnt cnt += 1 1 cnt a += s[i] s[i] a a = "" "" a cnt = 0 0 cnt
n = int(input())
s = input()

a = ""
cnt = 0
for i in range(n):
    if i==0:
        a += s[i]
        cnt += 1
    else:
        if s[i] != a[-1]:
            a += s[i]
            cnt += 1
print(cnt)