from collections import Counter N = int(input()) S = input() counter = Counter(S) print("Yes" if 1 < max(counter.values()) else "No")