import scala.io.StdIn._
import scala.annotation.tailrec

object Main {
    def main(args: Array[String]): Unit = {
        val str: Seq[String] = readLine().split("")
        val ans: Seq[String] = str.reverse
        println(ans.mkString)
    }
}