n = int(input()) s = input() print('Yes' if len(set(list(s))) < n else 'No')