n = int(input()) s = input() if len(s) == n: print("Yes") else: print("No")