N = int(input()) S = input() for c in S: if S.count(c) > 1: print('Yes') break else: print('No')