n=int(input()) s=input() d=set() for c in s: if c not in d: d.add(c) else: print("Yes") break else: print("No")