N = int(input())
S = input()

res = ""
pre = ""
for s in S:
    if pre != s:
        res += s
    pre = s

print(len(res)) N = int(input()) N int(input()) int input() input S = input() S input() input res = "" res "" pre = "" pre "" for s in S:
    if pre != s:
        res += s
    pre = s s S if pre != s:
        res += s
     pre != s pre s res += s res s pre = s pre s print(len(res)) print len(res) len res N = int(input()) int(input()) N pre = "" "" pre S = input() input() S res = "" "" res pre = s s pre res += s s res
N = int(input())
S = input()

res = ""
pre = ""
for s in S:
    if pre != s:
        res += s
    pre = s

print(len(res))
