n = int(input())
s = str(input())

new_s = s[0]

for i in range(1,len(s)):
    if s[i] == s[i-1]:
        continue
    else:
        new_s += s[i]

print(len(new_s)) n = int(input()) n int(input()) int input() input s = str(input()) s str(input()) str input() input new_s = s[0] new_s s[0] s 0 for i in range(1,len(s)):
    if s[i] == s[i-1]:
        continue
    else:
        new_s += s[i] i range(1,len(s)) range 1 len(s) len s if s[i] == s[i-1]:
        continue
    else:
        new_s += s[i] s[i] == s[i-1] s[i] s i s[i-1] s i-1 i 1 continue new_s += s[i] new_s s[i] s i print(len(new_s)) print len(new_s) len new_s new_s = s[0] s[0] new_s new_s += s[i] s[i] new_s s = str(input()) str(input()) s n = int(input()) int(input()) n
n = int(input())
s = str(input())

new_s = s[0]

for i in range(1,len(s)):
    if s[i] == s[i-1]:
        continue
    else:
        new_s += s[i]

print(len(new_s))
