N=int(input()) S=input() for i in range(26): if S.count(chr(i+ord("A")))>=2: exit(print("Yes")) print("No")