from collections import Counter input() print('Yes' if max(Counter(input()).values()) >= 2 else 'No')