var text = readLine()! let index1 = Int(readLine()!)! let index2 = Int(readLine()!)! let idx1 = text.index(text.startIndex, offsetBy: index1) let idx2 = text.index(text.startIndex, offsetBy: index2) let w1 = text[idx1] let w2 = text[idx2] text.replaceSubrange(idx1..