n = input()
s = input()

slime = s[0]
for index in range(1,len(s)):
  if s[index] != s[index-1]:
    slime += s[index]
print(len(slime)) n = input() n input() input s = input() s input() input slime = s[0] slime s[0] s 0 for index in range(1,len(s)):
  if s[index] != s[index-1]:
    slime += s[index] index range(1,len(s)) range 1 len(s) len s if s[index] != s[index-1]:
    slime += s[index] s[index] != s[index-1] s[index] s index s[index-1] s index-1 index 1 slime += s[index] slime s[index] s index print(len(slime)) print len(slime) len slime slime = s[0] s[0] slime n = input() input() n slime += s[index] s[index] slime s = input() input() s
n = input()
s = input()

slime = s[0]
for index in range(1,len(s)):
  if s[index] != s[index-1]:
    slime += s[index]
print(len(slime))