#include <bits/stdc++.h>

int main()
{
    unsigned long size;
    std::string str;
    std::cin >> str;
    size = str.size()-1;
    for (unsigned long i = 0; i <= size/2; i++) {
        std::swap(str[i], str[size-i]);
    }
    std::cout << str << std::endl;
    return 0;
}

