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