#include <iostream>

int main()
{
        int len = 0;
        char s[20];
        std::cin >> s;
        while(s[len] != '\0')
                ++len;
        while(len > 0)
                std::cout << s[--len];
        std::cout << std::endl;
        return 0;
}