a=int(input()) print('No' if len(set(input())) == a else 'Yes')