num = int(input())
str1 = input()
table = list(str1)
ans = []

for i in range(num-1):
    if table[i] == table[i+1]:
        continue
    else:
        ans.append(table[i])

print(len(ans) + 1) num = int(input()) num int(input()) int input() input str1 = input() str1 input() input table = list(str1) table list(str1) list str1 ans = [] ans [] for i in range(num-1):
    if table[i] == table[i+1]:
        continue
    else:
        ans.append(table[i]) i range(num-1) range num-1 num 1 if table[i] == table[i+1]:
        continue
    else:
        ans.append(table[i]) table[i] == table[i+1] table[i] table i table[i+1] table i+1 i 1 continue ans.append(table[i]) ans.append ans append table[i] table i print(len(ans) + 1) print len(ans) + 1 len(ans) len ans 1 str1 = input() input() str1 table = list(str1) list(str1) table ans = [] [] ans num = int(input()) int(input()) num
num = int(input())
str1 = input()
table = list(str1)
ans = []

for i in range(num-1):
    if table[i] == table[i+1]:
        continue
    else:
        ans.append(table[i])

print(len(ans) + 1)