n = int(input())
s = str(input())
s_new = s[0]

for i in range(1,len(s)):
  if s_new[-1] != s[i]:
    s_new = s_new + s[i]

print(len(s_new)) n = int(input()) n int(input()) int input() input s = str(input()) s str(input()) str input() input s_new = s[0] s_new s[0] s 0 for i in range(1,len(s)):
  if s_new[-1] != s[i]:
    s_new = s_new + s[i] i range(1,len(s)) range 1 len(s) len s if s_new[-1] != s[i]:
    s_new = s_new + s[i] s_new[-1] != s[i] s_new[-1] s_new -1 s[i] s i s_new = s_new + s[i] s_new s_new + s[i] s_new s[i] s i print(len(s_new)) print len(s_new) len s_new s = str(input()) str(input()) s n = int(input()) int(input()) n s_new = s[0] s[0] s_new s_new = s_new + s[i] s_new + s[i] s_new
n = int(input())
s = str(input())
s_new = s[0]

for i in range(1,len(s)):
  if s_new[-1] != s[i]:
    s_new = s_new + s[i]

print(len(s_new))