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