def main(): N = int(input()) S = input() ctr = 1 cur = S[0] for next_ in S[1:]: if cur == next_: continue ctr += 1 cur = next_ print(ctr) if __name__ == "__main__": main()