无脑实现
#include<iostream>
#include<string>
#include<algorithm>
int main(int argc, char const *argv[])
{
std::string instr;
std::cin >> instr;
std::reverse(instr.begin(), instr.end());//将数反转
std::cout << instr << std::endl;
return 0;
}