n = io.read("*n", "*l") s = io.read() t = {} for i = 1, n do z = s:sub(i, i) if not t[z] then t[z] = true else print("Yes") os.exit() end end print("No")