from collections import Counter def main(): N = int(input()) S = input() c = Counter(S) if max(c.values()) > 1: print("Yes") else: print("No") if __name__ == "__main__": main()