n = int(input())
s = list(input())
b = 0
d = s[0]
for i in range(n):
    if d != s[i]:
        d = s[i]
        b += 1

print(b+1) n = int(input()) n int(input()) int input() input s = list(input()) s list(input()) list input() input b = 0 b 0 d = s[0] d s[0] s 0 for i in range(n):
    if d != s[i]:
        d = s[i]
        b += 1 i range(n) range n if d != s[i]:
        d = s[i]
        b += 1 d != s[i] d s[i] s i d = s[i] d s[i] s i b += 1 b 1 print(b+1) print b+1 b 1 b += 1 1 b s = list(input()) list(input()) s d = s[i] s[i] d n = int(input()) int(input()) n b = 0 0 b d = s[0] s[0] d
n = int(input())
s = list(input())
b = 0
d = s[0]
for i in range(n):
    if d != s[i]:
        d = s[i]
        b += 1

print(b+1)
