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 <cstdio>
#include <cstdlib>
#include <cmath>
#include <climits>
#include <cfloat>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <sstream>
#include <complex>
#include <stack>
#include <queue>

using namespace std;
static const double EPS = 1e-10;

int main(){
	string str;

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

	return 0;
}

C++: import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		char[] data = str.toCharArray();

		StringBuffer sb = new StringBuffer(str);
		str = sb.reverse().toString();
		System.out.println(str);
	}
}

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

int main() {
	string s;
	cin >> s;
	cout << string(s.rbegin(),s.rend()) << endl;
	return 0;
}

C++: #include <stdio.h>
#include <string.h>
#include<conio.h>
int main()
{
   char arr[100];

   printf("\n");
   gets(arr);

   strrev(arr);

   printf("\n%s\n",arr);

   return 0;
}

C++: #include<stdio.h>
#include<string.h>
int main(){
 int i;
 char s[50];
 scanf("%s",s);
 for(i=strlen(s)-1;i>-1;i--)printf("%c",s[i]);
 printf("\n");
 return 0;
}

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

using namespace std;

int main() {
	string x;
	cin >> x;
	for (int i = x.size() - 1; i >= 0; --i) {
		cout << x[i];
	}
	cout << endl;
	//{char c; cin >> c;}
	return 0;
}

C++: #include <cstdio>
#include <cstdlib>
#include <cmath>
#include <climits>
#include <cfloat>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <sstream>
#include <complex>
#include <stack>
#include <queue>
using namespace std;
static const double EPS = 1e-5;
typedef long long ll;
#define FOR(i,n) for(i=0;i<n;i++)
#define rep(i,n) for(int i=0;i<n;i++)

int main(){
	string s;
	cin>>s;
	rep(i,s.size()){
		putchar(s[s.size()-i-1]);
	}
	return 0;
}

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

int main(){
	std::string st;
	std::cin >> st;
	
	while(!(st.empty())){
		std::cout << st.back();
		st.pop_back();
	}
	std::cout << std::endl;
	return 0;
}

C++: #include <bits/stdc++.h>
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<cstring>
using namespace std;
int main()
{
	int i,n;
	char a[41];
	cin >> a;
	n = strlen(a);
	for(i=n-1;i>=0;i--)
	{
		cout << a[i];
	}
	cout << endl;
	return 0;
}

C++: #include<iostream>

using namespace std;

char str[20];

int main()
{
	cin>>str;
	for(int i=0;i<20;++i)
	{
		if(str[19-i]!=0)
		{
			printf("%c",str[19-i]);
		}
	}
	printf("\n");

}

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

C++: #include <iostream>
#include <iomanip>
#include <sstream>
#include <stdio.h>
#include <vector>
#include <stack>
#include <queue>
#include <algorithm>
#include <math.h>
#include <utility>
#include <string>
#include <ctype.h>
#include <cstring>
#include <cstdio>
#include <sstream>
using namespace std;

#define FOR(i,k,n) for(int i = (k); i < (n); i++)
#define REP(i,n) FOR(i,0,n)
#define INF 114514810
#define ll long long


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>
using namespace std;

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

C++: main(i){char a[21];for(scanf("%s",a),i=strlen(a)+1;i;i--)putchar(a[i-1]);}

C++: #include <bits/stdc++.h>
#define rep(i, a, n) for(int i = a; i < n; i++)
#define repb(i, a, b) for(int i = a; i >= b; i--)
#define all(a) a.begin(), a.end()
#define o(a) cout << a << endl
#define int long long
#define first first
#define second se
using namespace std;
typedef pair<int, int> P;
typedef vector<int> vi;

signed main(){
    string s;
    cin >> s;
    reverse(all(s));
    o(s);
}

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

using namespace std;

int main(){
	char stra[20],strb[20];
	int a,c;
	cin>>stra;
	a = strlen(stra);
	for(int i=0;i<a;i++){
		c = a - i -1;
		strb[i]=stra[c];
	strb[i+1]='\0';
	}
	cout<<strb<<endl;	
}

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

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

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

using namespace std;

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

C++: #include <cstdio>
#include <cstring>

int main(void) {
	char str[21];
	scanf("%s", str);
	for(int i = strlen(str) - 1; i >= 0; i--)
		putchar(str[i]);
	printf("\n");
	return 0;
}

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

int main() {
	char str[25];
	for (int i = 0;i < 25;i++) {
		str[i] = '%';
	}
	cin >> str;
	for (int i = 24; i >= 0; i--) {
		if (str[i] == '%') continue;
		cout << str[i];
	}
	cout << endl;
	return 0;
}

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

int main(){

  string s;

  cin>>s;

  for(int i=s.size()-1;i>=0;--i)
    cout<<s[i];

  cout<<endl;

}

C++: #include <iostream>
#include <string>
using namespace std;
int main(void){
    int len;
    string a;
    std::cin >> a;
    len =a.length();
    if(len <= 20){
        for(int i = len - 1; i >=0; i--){
            std::cout << a.at(i);
        }
    }
    
    return 0;
}

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

int main()
{
     char a[21];
     gets(a);
     strrev(a);
     puts(a);

     return 0;
}

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

int main()
{
	char str[20];
	scanf("%s", str);
	int i;
	for (i = strlen(str)-1; i >= 0; --i)
	{
		putchar(str[i]);
	}
	printf("\n");
	return 0;
}

C++: 
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <string>
#include <vector>
#include <set>
#include <map>
#define pi 3.14159265358979323846264338
using namespace std;

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

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

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

C++: #include <stdio.h>

using namespace std;


int main(){
	char buf[21];
	int length=0;

	scanf("%s",buf);
	for(int i=0;buf[i]!='\0';i++)length++;
	for(int i=length-1;i>=0;i--)printf("%c",buf[i]);
	printf("\n");

    return 0;
}

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

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

int main(){
	string w;
	cin >> w;

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