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