n=int(input())
s=input()
c=s[0]
for i in range(1,n):
    if s[i]!=s[i-1]:
        c=c+s[i]
print(len(c)) n=int(input()) n int(input()) int input() input s=input() s input() input c=s[0] c s[0] s 0 for i in range(1,n):
    if s[i]!=s[i-1]:
        c=c+s[i] i range(1,n) range 1 n if s[i]!=s[i-1]:
        c=c+s[i] s[i]!=s[i-1] s[i] s i s[i-1] s i-1 i 1 c=c+s[i] c c+s[i] c s[i] s i print(len(c)) print len(c) len c c=c+s[i] c+s[i] c c=s[0] s[0] c s=input() input() s n=int(input()) int(input()) n
n=int(input())
s=input()
c=s[0]
for i in range(1,n):
    if s[i]!=s[i-1]:
        c=c+s[i]
print(len(c))
