n=input()
s = input()
cnt=0
s_list = [word for word in s]

tmp = s_list.pop()
for _ in range(len(s_list)):
  tmp_2 = s_list.pop()
  if tmp!=tmp_2:
    cnt+=1
  tmp=tmp_2
print(cnt+1) n=input() n input() input s = input() s input() input cnt=0 cnt 0 word for word in s for word in s word s for word in s word s_list = [word for word in s] s_list [word for word in s] tmp = s_list.pop() tmp s_list.pop() s_list.pop s_list pop for _ in range(len(s_list)):
  tmp_2 = s_list.pop()
  if tmp!=tmp_2:
    cnt+=1
  tmp=tmp_2 _ range(len(s_list)) range len(s_list) len s_list tmp_2 = s_list.pop() tmp_2 s_list.pop() s_list.pop s_list pop if tmp!=tmp_2:
    cnt+=1
   tmp!=tmp_2 tmp tmp_2 cnt+=1 cnt 1 tmp=tmp_2 tmp tmp_2 print(cnt+1) print cnt+1 cnt 1 cnt=0 0 cnt s = input() input() s s_list = [word for word in s] [word for word in s] s_list tmp_2 = s_list.pop() s_list.pop() tmp_2 tmp=tmp_2 tmp_2 tmp n=input() input() n tmp = s_list.pop() s_list.pop() tmp cnt+=1 1 cnt
n=input()
s = input()
cnt=0
s_list = [word for word in s]

tmp = s_list.pop()
for _ in range(len(s_list)):
  tmp_2 = s_list.pop()
  if tmp!=tmp_2:
    cnt+=1
  tmp=tmp_2
print(cnt+1)