

n = int(input())

s = input()


count = 1



for h in range(len(s)-1):
 
    if s[h] != s[h+1]:
        count += 1

print(count)
 n = int(input()) n int(input()) int input() input s = input() s input() input count = 1 count 1 for h in range(len(s)-1):
 
    if s[h] != s[h+1]:
        count += 1 h range(len(s)-1) range len(s)-1 len(s) len s 1 if s[h] != s[h+1]:
        count += 1 s[h] != s[h+1] s[h] s h s[h+1] s h+1 h 1 count += 1 count 1 print(count) print count n = int(input()) int(input()) n count += 1 1 count s = input() input() s count = 1 1 count


n = int(input())

s = input()


count = 1



for h in range(len(s)-1):
 
    if s[h] != s[h+1]:
        count += 1

print(count)

