n = int(input())
s = str(input())
w = s[0]
num = 0
for i in range(1,n):
    if w[0] == s[i]:
        w += s[i]
    else:
        num += 1
        w = s[i]
num += 1
print(num) n = int(input()) n int(input()) int input() input s = str(input()) s str(input()) str input() input w = s[0] w s[0] s 0 num = 0 num 0 for i in range(1,n):
    if w[0] == s[i]:
        w += s[i]
    else:
        num += 1
        w = s[i] i range(1,n) range 1 n if w[0] == s[i]:
        w += s[i]
    else:
        num += 1
        w = s[i] w[0] == s[i] w[0] w 0 s[i] s i w += s[i] w s[i] s i num += 1 num 1 w = s[i] w s[i] s i num += 1 num 1 print(num) print num n = int(input()) int(input()) n w = s[i] s[i] w num = 0 0 num s = str(input()) str(input()) s w += s[i] s[i] w num += 1 1 num num += 1 1 num w = s[0] s[0] w
n = int(input())
s = str(input())
w = s[0]
num = 0
for i in range(1,n):
    if w[0] == s[i]:
        w += s[i]
    else:
        num += 1
        w = s[i]
num += 1
print(num)