import collections

N = int(input())
S = input()
c = collections.Counter(list(S))
ans = ['No','Yes'][c.most_common(1)[0][1] > 1]
print(ans)