N = int(input()) S = list(input()) print("Yes" if len(set(S)) < len(S) else "No")