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