N = int(input()) S = list(input()) c = len(set(S)) print('Yes' if c != N else 'No')