from collections import Counter n = int(input()) s = input() dic = Counter(s) for v in dic.values(): if v >= 2: print("Yes") break else: print("No")