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