N = int(input())
S = input().rstrip()
res = 1
s0 = S[0]
for s in S[1:]:
    if s != s0:
        res += 1
    s0 = s
print(res) N = int(input()) N int(input()) int input() input S = input().rstrip() S input().rstrip() ().rstrip () input rstrip res = 1 res 1 s0 = S[0] s0 S[0] S 0 for s in S[1:]:
    if s != s0:
        res += 1
    s0 = s s S[1:] S 1: 1 if s != s0:
        res += 1
     s != s0 s s0 res += 1 res 1 s0 = s s0 s print(res) print res N = int(input()) int(input()) N s0 = S[0] S[0] s0 s0 = s s s0 S = input().rstrip() input().rstrip() S res = 1 1 res res += 1 1 res
N = int(input())
S = input().rstrip()
res = 1
s0 = S[0]
for s in S[1:]:
    if s != s0:
        res += 1
    s0 = s
print(res)