input()
s = input()
count = 1
for i in range(len(s)-1):
    if s[i]!=s[i+1]:
        count+=1
print(count) input() input s = input() s input() input count = 1 count 1 for i in range(len(s)-1):
    if s[i]!=s[i+1]:
        count+=1 i range(len(s)-1) range len(s)-1 len(s) len s 1 if s[i]!=s[i+1]:
        count+=1 s[i]!=s[i+1] s[i] s i s[i+1] s i+1 i 1 count+=1 count 1 print(count) print count count+=1 1 count s = input() input() s count = 1 1 count
input()
s = input()
count = 1
for i in range(len(s)-1):
    if s[i]!=s[i+1]:
        count+=1
print(count)