N = int(input())
S = input()
count = 1
check = S[0]

for c in S:
  if c != check:
    count += 1
    check = c

print(count) N = int(input()) N int(input()) int input() input S = input() S input() input count = 1 count 1 check = S[0] check S[0] S 0 for c in S:
  if c != check:
    count += 1
    check = c c S if c != check:
    count += 1
    check = c c != check c check count += 1 count 1 check = c check c print(count) print count count = 1 1 count check = c c check N = int(input()) int(input()) N S = input() input() S count += 1 1 count check = S[0] S[0] check
N = int(input())
S = input()
count = 1
check = S[0]

for c in S:
  if c != check:
    count += 1
    check = c

print(count)