N=int(input()) S=input() for s in S: if S.count(s)>=2:exit(print("Yes")) print("No")