#include <iostream>
#include <string>

int main() {
  std::string input;
  getline(std::cin, input);

  for(unsigned int cnt = input.length(); cnt > 0; --cnt) {
    std::cout << input[cnt -1];
  }
  std::cout << std::endl;
}