N = int(input()) S = input() T = sorted(S) for i in range(N-1): if T[i] == T[i+1]: print("Yes") break else: print("No")