import tables let n, s = readLine stdin cntTable = s.toCountTable (_, cnt) = cntTable.largest echo: if cnt >= 2: "Yes" else: "No"