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