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

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

print(ans)