N = int(input()) S = input() for c in range(ord('A'), ord('Z') + 1): if S.count(chr(c)) > 1: print('Yes') exit() print('No')