rst = []
N = int(input())
S = input()
tmp_val = ''
for i in S:
    if tmp_val != i:
        rst.append(i)
        tmp_val = i
print(len(rst)) rst = [] rst [] N = int(input()) N int(input()) int input() input S = input() S input() input tmp_val = '' tmp_val '' for i in S:
    if tmp_val != i:
        rst.append(i)
        tmp_val = i i S if tmp_val != i:
        rst.append(i)
        tmp_val = i tmp_val != i tmp_val i rst.append(i) rst.append rst append i tmp_val = i tmp_val i print(len(rst)) print len(rst) len rst tmp_val = i i tmp_val tmp_val = '' '' tmp_val rst = [] [] rst N = int(input()) int(input()) N S = input() input() S
rst = []
N = int(input())
S = input()
tmp_val = ''
for i in S:
    if tmp_val != i:
        rst.append(i)
        tmp_val = i
print(len(rst))