n=int(input())
s=input()
a=[s[0]]
for i in range(1,n):
  if s[i]!=s[i-1]:
    a.append(s[i])
"".join(a)
print(len(a)) n=int(input()) n int(input()) int input() input s=input() s input() input a=[s[0]] a [s[0]] s[0] s 0 for i in range(1,n):
  if s[i]!=s[i-1]:
    a.append(s[i]) i range(1,n) range 1 n if s[i]!=s[i-1]:
    a.append(s[i]) s[i]!=s[i-1] s[i] s i s[i-1] s i-1 i 1 a.append(s[i]) a.append a append s[i] s i "".join(a) "".join "" join a print(len(a)) print len(a) len a n=int(input()) int(input()) n a=[s[0]] [s[0]] a s=input() input() s
n=int(input())
s=input()
a=[s[0]]
for i in range(1,n):
  if s[i]!=s[i-1]:
    a.append(s[i])
"".join(a)
print(len(a))