object Q729 { def main(args: Array[String]) = { val chars = io.StdIn.readLine().toSeq val indexes = io.StdIn.readLine().split(' ').map(_.toInt).toSeq val i = indexes(0) val j = indexes(1) val answer = chars.updated(i, chars(j)).updated(j, chars(i)).mkString("") println(answer) } }