N = int(input()) S = input() from collections import Counter c = Counter(S).most_common() if c[0][1] >= 2: print("Yes") else: print("No")