n = int(input())

k = input()

final = 0
for i in range(0, n - 1):
    if k[i] != k[i + 1]:
        final += 1
        
print(final + 1) n = int(input()) n int(input()) int input() input k = input() k input() input final = 0 final 0 for i in range(0, n - 1):
    if k[i] != k[i + 1]:
        final += 1
         i range(0, n - 1) range 0 n - 1 n 1 if k[i] != k[i + 1]:
        final += 1
         k[i] != k[i + 1] k[i] k i k[i + 1] k i + 1 i 1 final += 1 final 1 print(final + 1) print final + 1 final 1 final = 0 0 final final += 1 1 final n = int(input()) int(input()) n k = input() input() k
n = int(input())

k = input()

final = 0
for i in range(0, n - 1):
    if k[i] != k[i + 1]:
        final += 1
        
print(final + 1)