Go: package main

import (
        "fmt"
)

func main () {
        var str string
        fmt.Scanf("%s", &str)
        show(len(str)-1, str)
}

func show(n int, str string) {
        if n == 0 {
                fmt.Printf("%s\n", string(str[n]))
        } else {
                fmt.Printf("%s", string(str[n]))
                show(n-1, str)
        }
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
//ranker
using namespace std;

using ll = long long;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;
using pii = pair<int, int>;
using pis = pair<int, string>;
using psi = pair<string, int>;
using D = double;
using P = complex<D>;
template <typename T> using PQ = priority_queue<T>;
template <typename T> using minPQ = priority_queue<T, vector<T>, greater<T>>;


int main()
{
    string str;

    cin >> str;
    reverse( str.begin() , str.end() );
    cout << str << endl;

    return 0;
}

C++: #include<iostream>
#include<cstring>
using namespace std;
int main()
{
  char s[21];
  cin >> s;
  int len = strlen(s);
  for(int i = len;i >= 0;i--){
    cout << s[i];
  }
  cout << endl;
}

C++: #include <stdio.h>
int main(void){
    char s[21],*p;
    while(~scanf("%s",s)){
        for(p=s;*p++;);
        for(p--;s<=p;p--)printf("%c",*p);
        puts("");
    }
    return 0;
}

C++: #include<iostream>

using namespace std;

#define rep(i, n) for (int i = 0; i < int(n); ++i)

int main() {
  string str;
  cin >> str;
  rep (i, str.size()) {
    cout << str[str.size() - i - 1];
  }
  cout << endl;
}

C++: #include <bits/stdc++.h>
using namespace std;

int main(){
  string str;
  cin >> str;
  reverse(str.begin(), str.end());
  cout << str << endl;
}

C++: #include <bits/stdc++.h>
using namespace std;

#define iota(i,n,b,s) for(int i=int(b);i!=int((b)+(s)*(n));i+=(s))
#define range(i,n,m) iota(i,(((n)>(m))?((n)-(m)+1):((m)-(n)+1)),(n),((n)>(m)?-1:1))
#define rep(i,n) iota(i,(n),0,1)

#define INF (1e9)
#define EPS (1e-9)
#define cons(a,b) (make_pair(a,b))
#define car(a) (a.first)
#define cdr(a) (a.second)
#define cadr(a) (car(cdr(a)))
#define cddr(a) (cdr(cdr(a)))
#define all(a) a.begin(), a.end()
#define trace(var) cerr<<">>> "<<#var<<" = "<<var<<endl;

typedef long long Integer;
typedef double Real;

template<class S, class T>
ostream& operator<<(ostream& os, pair<S,T> p) {
  os << '(' << car(p) << ", " << cdr(p) << ')';
  return os;
}

template<class T>
ostream& operator<<(ostream& os, vector<T> v) {
  os << v[0];
  for (int i=1, len=v.size(); i<len; ++i) os << ' ' << v[i];
  return os;
}

int dx[] = { -1, 0, 1, 0 };
int dy[] = {  0, -1, 0, 1 };

int main() {

  string s;cin>>s;reverse(all(s));cout<<s<<'\n';

  return 0;
}

C++: #include <stdio.h>
#include <iostream>
#include <string.h>


using namespace std;

int main() {
int kazu;
char rin[21];
scanf("%s",rin);
	
	kazu = strlen(rin);
	
	for(int i = kazu-1; i >= 0; i--) {
	 cout << rin[i];
	}
	
	cout << "\n";
	
    return 0;
}

C++: #include <iostream>
#include<string>
using namespace std;

int main()
{
	string s;
	cin >> s;
	for(int i=s.size()-1;i>=0;i--)
	{
		cout << s[i];
	}
	cout << endl;

	return 0;
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;

int main(void)
{
	 string str;
	 cin >> str;
	 reverse(str.begin(), str.end());
	 cout << str << endl;
}

C++: #include<iostream>
#include<string>
using namespace std;

int main(){
	string str;
	cin >> str;
	for(int i = str.size(); i >= 0; i--){
		cout << str[i];
	}
	cout << endl;
}

C++: #include <iostream>
#include <string>
using namespace std;

int main()
{
    string str;

    cin >> str;
    reverse(str.begin(), str.end());
    cout << str << endl;

    return 0;
}

C++: #include <iostream>
#include <vector>
#include <iterator>
#include <algorithm>

int main()
{
	std::vector<char> input;
	std::copy(
		std::istreambuf_iterator<char>(std::cin),
		std::istreambuf_iterator<char>(),
		std::back_inserter(input));
	for (auto i = input.rbegin(); i != input.rend(); ++i) {
		std::cout << *i;
	}

	return 0;
}

C++: #include<iostream>
#include<string>
using namespace std;

int main(){
  string ss;
  cin >> ss;
  for(int i = ss.length()-1; i>=0; i--){
    cout <<ss[i];
  } cout << endl;
}

C++: #include <iostream>
#include <cstdio>
#include <string>
using namespace std;

int main() {
  string s; cin >> s;
  for(int i = s.size()-1; i >= 0; i--) printf("%c", s[i]);
  cout << endl;
}

C++: #include<iostream>
#include<string>

using namespace std;

int main(){
  string str;

  cin >> str;
  for(int i = str.size()-1; i >= 0; --i){
    cout << str[i];
  }
  cout << endl;
  return 0;
}

C++: #include<iostream>
#include<string>
using namespace std;
int main(){
	string str;
	getline(cin,str);
	for(int i=str.size()-1;i>=0;i--){
		cout<<str[i];
	}
	cout<<endl;
}

C++: #include <iostream>
using namespace std;

int main() {
    string str;
    cin >> str;
    for(int i=0; i<str.size(); i++) {
        cout << str[str.size()-i-1] << flush;
    }
    cout << endl;
    return 0;
}

C++: #include<iostream>
#include<string>
using namespace std;

int main(){
  string str, revStr;
  
  cin >> str;
  for(int i = 0; i < str.length(); i++) {
    revStr.push_back(str[str.length() - 1 - i]);
  }
  cout << revStr << endl;
  return 0;
}

C++: #include <stdio.h>
#include <string.h>

int main (void) {
    char s[21];
    int i;
    int l;
    
    printf("Input text: ");
    gets(s);
    l=strlen(s);
    for (i=l-1;i>=0;i--){
        printf("%c",s[i]);       
   }    
    printf("\n");
    system("pause");
}

C++: #include<iostream>
#include<string>

using namespace std;

int main(){
	int i,n;
	string str;
	cin>>str;
	n=str.length();
	for(i=0;i<n;i++){
		cout<<str[n-i-1];
	}
	cout<<endl;
	return 0;
}

C++: #include<cstdio>
#include<cstring>
int main(void){
	char a[21];
	int c;
	scanf("%s", a);
	c = strlen(a);
	for (int i = 1; i <= c; i++)printf("%c", a[c - i]);
	return 0;
}

C++: #include<iostream>
#include <stdio.h>
using namespace std;

int main(){
  int i,j;
  char s[20];
  char tmp[20];

  cin >> s;
  for(i=0;s[i] != NULL; i++);
  for(j=i-1;j>=0;j--){
    printf("%c",s[j]);
  }
  cout << endl;

return 0;
}

C++: #include <iostream>
#include <cstring>
using namespace std;

int main() {
	char str[100];
	cin >> str;
	for(int i=strlen(str)-1;i>=0;i--){
		cout << str[i];
	}
	cout << endl;
	return 0;
}

C++: #include <iostream>
#include <string>
using namespace std;
int main(){
char a[40];
int len,b;
cin.getline(a,40);
len = strlen(a);
for(int i=len;i>=0;i--){
cout<<a[i];
}
cout<<' '<<endl;
return 0;
}

C++: #include <iostream>
#include <string>
using namespace std;
int main(){
	int i;
	string str,ans;
	char a[20];
	cin>>str;
	for(i=0;i<str.size();i++){
		a[i]=str[i];
	}
	for(int j=i-1;j>=0;j--){
		ans+=a[j];
	}
	cout<<ans<<endl;
	return 0;
}

C++: #include <math.h>
#include <iostream>
#include <ios>
#include <iomanip>
#include <algorithm>
#include <functional>
#include <string>

#define YES "YES"
#define NO "NO"
#define space ' '

using namespace std;

void func();

int main(void)
{
	
	func();

	return 0;
}


void func()
{
	string in;
	cin >> in;

	for (int i = in.size(); i-- > 0;)
	{
		cout << in[i];
	}
	cout << endl;
}

C++: #include <iostream>
#include <string.h>
using namespace std;

int main()
{
    char *rev;
    cin>>rev;
    strrev(rev);
    cout<<rev<<"\n";
}

C++: #include <iostream>
#include <string>
using namespace std;

int main() {
    
    string str;
    string::reverse_iterator rStr;
    cin >> str;
    for(rStr = str.rbegin(); rStr < str.rend(); rStr++) cout << *rStr;
    return 0;
}

C++: #include <stdio.h>

int main(void){
	char s[21];
	int i = 0,j;
	
	while(scanf("%c",&s[i]) != EOF){
		i++;
	}
	
	for(j = i-2;j >= 0;j--){
		printf("%c",s[j]);
	}
	printf("\n");
	
	return 0;
}