N = int(input()) S = input() print('Yes' if len(set(S)) < N else 'No')