n = int(input())
S = input()
ls = [S[0]]
for s in S[1:]:
    if ls[-1] == s:
        continue
    ls.append(s)
print(len(ls)) n = int(input()) n int(input()) int input() input S = input() S input() input ls = [S[0]] ls [S[0]] S[0] S 0 for s in S[1:]:
    if ls[-1] == s:
        continue
    ls.append(s) s S[1:] S 1: 1 if ls[-1] == s:
        continue
     ls[-1] == s ls[-1] ls -1 s continue ls.append(s) ls.append ls append s print(len(ls)) print len(ls) len ls ls = [S[0]] [S[0]] ls S = input() input() S n = int(input()) int(input()) n
n = int(input())
S = input()
ls = [S[0]]
for s in S[1:]:
    if ls[-1] == s:
        continue
    ls.append(s)
print(len(ls))