package main

import (
	"fmt"
)

func main() {
	var s string
	var s1 []byte
	var s2 []byte

	fmt.Scan(&s)

	s1 = []byte(s)
	for i := len(s1) - 1; i >= 0; i-- {
		s2 = append(s2, s1[i])
	}

	fmt.Println(string(s2))
}