//C++版代码 #include <iostream> #include <algorithm> using namespace std; int main() { string s; cin >> s; reverse(s.begin(), s.end()); cout << s; return 0; } //Java版代码 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); StringBuilder sb = new StringBuilder(sc.next()); System.out.println(sb.reverse()); } } #Python版代码 print(input()[::-1])