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