a = int(input())
b = input()
c = 1
for i in range(a-1):
  if b[i] != b[i+1]:
    c += 1
print(c) a = int(input()) a int(input()) int input() input b = input() b input() input c = 1 c 1 for i in range(a-1):
  if b[i] != b[i+1]:
    c += 1 i range(a-1) range a-1 a 1 if b[i] != b[i+1]:
    c += 1 b[i] != b[i+1] b[i] b i b[i+1] b i+1 i 1 c += 1 c 1 print(c) print c a = int(input()) int(input()) a c += 1 1 c c = 1 1 c b = input() input() b
a = int(input())
b = input()
c = 1
for i in range(a-1):
  if b[i] != b[i+1]:
    c += 1
print(c)
