input()
S = input()
j = ""
A =""
for i in S:
    if i !=j:
        A += i
        j = i
print(len(A)) input() input S = input() S input() input j = "" j "" A ="" A "" for i in S:
    if i !=j:
        A += i
        j = i i S if i !=j:
        A += i
        j = i i !=j i j A += i A i j = i j i print(len(A)) print len(A) len A S = input() input() S j = "" "" j A ="" "" A A += i i A j = i i j
input()
S = input()
j = ""
A =""
for i in S:
    if i !=j:
        A += i
        j = i
print(len(A))