n=int(input()) s=input() S=set() for e in s: if e in S: print("Yes") exit() S.add(e) print("No")