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

ans=''
for i in range(n-1):
  if s[i]==s[i+1]:
    pass
  else:
    ans+=s[i]
    
ans+=s[-1]

print(len(ans)) n=int(input()) n int(input()) int input() input s=input() s input() input ans='' ans '' for i in range(n-1):
  if s[i]==s[i+1]:
    pass
  else:
    ans+=s[i]
     i range(n-1) range n-1 n 1 if s[i]==s[i+1]:
    pass
  else:
    ans+=s[i]
     s[i]==s[i+1] s[i] s i s[i+1] s i+1 i 1 ans+=s[i] ans s[i] s i ans+=s[-1] ans s[-1] s -1 print(len(ans)) print len(ans) len ans n=int(input()) int(input()) n ans+=s[i] s[i] ans ans+=s[-1] s[-1] ans ans='' '' ans s=input() input() s
n=int(input())
s=input()

ans=''
for i in range(n-1):
  if s[i]==s[i+1]:
    pass
  else:
    ans+=s[i]
    
ans+=s[-1]

print(len(ans))