n = int(input())
s = [i for i in input()]
result  = []
tmp = '¥'
for i in range(0,n):
    if tmp != s[i]:
        result.append(s[i])
        tmp = s[i]
print(len(result)) n = int(input()) n int(input()) int input() input i for i in input() for i in input() i input() input for i in input() i s = [i for i in input()] s [i for i in input()] result  = [] result [] tmp = '¥' tmp '¥' for i in range(0,n):
    if tmp != s[i]:
        result.append(s[i])
        tmp = s[i] i range(0,n) range 0 n if tmp != s[i]:
        result.append(s[i])
        tmp = s[i] tmp != s[i] tmp s[i] s i result.append(s[i]) result.append result append s[i] s i tmp = s[i] tmp s[i] s i print(len(result)) print len(result) len result n = int(input()) int(input()) n tmp = '¥' '¥' tmp result  = [] [] result s = [i for i in input()] [i for i in input()] s tmp = s[i] s[i] tmp
n = int(input())
s = [i for i in input()]
result  = []
tmp = '¥'
for i in range(0,n):
    if tmp != s[i]:
        result.append(s[i])
        tmp = s[i]
print(len(result))