from collections import Counter N = int(input()) S = list(input()) C = Counter(S) for _, v in C.items(): if v >= 2: print("Yes") exit() print("No")