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