N = int(input()) S = list(input()) for i in range(N): for j in range(i + 1, N): if S[i] == S[j]: print("Yes") exit() print("No")