from collections import Counter input() print('YNeos'[max(Counter(input()).values())<2::2])