n = int(input())
d = input()

x = d[0]
count = 1
for i in d:
    if i != x:
        count += 1
        x = i
print(count) n = int(input()) n int(input()) int input() input d = input() d input() input x = d[0] x d[0] d 0 count = 1 count 1 for i in d:
    if i != x:
        count += 1
        x = i i d if i != x:
        count += 1
        x = i i != x i x count += 1 count 1 x = i x i print(count) print count count += 1 1 count x = i i x count = 1 1 count d = input() input() d x = d[0] d[0] x n = int(input()) int(input()) n
n = int(input())
d = input()

x = d[0]
count = 1
for i in d:
    if i != x:
        count += 1
        x = i
print(count)