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

ans = 1
prev = s[0]
for i in range(1, len(s)):
    if s[i] == prev:
        continue
    ans += 1
    prev = s[i]
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(1, len(s)):
    if s[i] == prev:
        continue
    ans += 1
    prev = s[i] i range(1, len(s)) range 1 len(s) len s if s[i] == prev:
        continue
     s[i] == prev s[i] s i prev continue ans += 1 ans 1 prev = s[i] prev s[i] s i print(ans) print ans prev = s[0] s[0] prev s = input() input() s ans += 1 1 ans prev = s[i] s[i] prev n = int(input()) int(input()) n ans = 1 1 ans
n = int(input())
s = input()

ans = 1
prev = s[0]
for i in range(1, len(s)):
    if s[i] == prev:
        continue
    ans += 1
    prev = s[i]
print(ans)
