n = int(input())
s = input()
print(1 + sum(s[i] != s[i + 1] for i in range(n - 1))) n = int(input()) n int(input()) int input() input s = input() s input() input print(1 + sum(s[i] != s[i + 1] for i in range(n - 1))) print 1 + sum(s[i] != s[i + 1] for i in range(n - 1)) 1 sum(s[i] != s[i + 1] for i in range(n - 1)) sum s[i] != s[i + 1] s[i] s i s[i + 1] s i + 1 i 1 n = int(input()) int(input()) n s = input() input() s
n = int(input())
s = input()
print(1 + sum(s[i] != s[i + 1] for i in range(n - 1)))