n = int(input()) s = input() che = False for i in s: if s.count(i) >= 2: che = True break print('Yes') if che else print('No')