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<bits/stdc++.h>
#include<vector>
#include<list>
#include<stack>
#include<queue>
#include<algorithm>
using namespace std;

//typedef int kz;
//typedef long kz;
typedef long long kz;

kz gcd(kz a,kz b) { if(b==0) return a; else gcd(b,a%b); }
kz lcm(kz a,kz b) { return a*b/gcd(a,b); }

/**
 * vector<int>ar(3);
 * for(auto&e:ar){
 *     scanf("%d",&e);
 * }
 * sort(ar.begin(),ar.end())
 * int sum=accumulate(ar.begin(),ar.end(),0);
 **/


int main(){
    int mod=1000000007;
    int n,m;
    string c;
    cin>>c;
    reverse(c.begin(),c.end());
    cout<<c<<endl;
    return 0;
}

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

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

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 <string>
#include <iostream>
#include <algorithm>

using namespace std;

int main()
{
  string str;

  getline(cin, str);
  reverse(str.begin(), str.end());
  cout << str << "\n";

  return 0;
}

C++: #include <iostream>
#include <string>
using namespace std;
int main() {
  string s;
  while(getline(cin, s)) {
    // reverse(s.begin(), s.end());
    vector<int> v;
    v.push_back(3);
    reverse(v.begin(), v.end());
    cout << s << endl;
  }
  return 0;
}

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

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

C++: #include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <queue>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <complex>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>
#include <fstream>
#include <stdio.h>

using namespace std;

//conversion
//------------------------------------------
inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();}

//typedef
//------------------------------------------
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<double> VEC;
typedef vector<VEC> MAT;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef pair<int, PII> TIII;
typedef long long LL;
typedef vector<LL> VLL;
typedef vector<VLL> VVLL;
//container util

//------------------------------------------
#define ALL(a)  (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define SZ(a) int((a).size())
#define EACH(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())
#define MT(a,b,c) MP(a, MP(b, c))
#define T1 first
#define T2 second.first
#define T3 second.second.first
#define T4 second.second.second

//repetition
//------------------------------------------
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define EPS 1.0e-9

int main(){
	string str;
	cin>>str;
	reverse(ALL(str));
	cout<<str<<endl;
	return 0;
}

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

int main(){
	int i;
	char str[256];
	char n[256];
	scanf("%s", str);
	int l = strlen(str);
	for(i=0;i<l;i++)
		n[i] = str[l-i-1];
	printf("%s\n", n);
}

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

using namespace std;
static const int MAXV = 21;

int main() {
  char A[MAXV]={};
  cin >> A;
  int i=0;
  for(;i<MAXV;i++) {
    //printf("%c", A[i]);
    if (A[i] == 0) break;
  }
  i--;
  for(;i!=-1;i--) {
    printf("%c", A[i]);
  }
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
	char ch[21];
	cin>>ch;
	int n=strlen(ch);
	char bch[n];
	int t=n-1;
	for(int a=0;a<n;a++){
		bch[t]=ch[a];
		t--;
	}
	for(int b=0;b<n;b++){
		printf("%c",bch[b]);
	}
	printf("\n");
}

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

#define MAX 256

int main(void){

	char str[21];
	int c = 0;
	scanf("%s", &str);
	for (int i = 0; str[i] != '\0'; i++){
		c++;
	}
	for (int i = c; i >= 0; i--){
		printf("%c", str[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>
#include <cstring>
#include <fstream>
#include <random>
#include <cmath>
#include <iomanip>
#include <climits>
#include <cstdlib>
#include <algorithm>
#include <vector>
#include <map>
#include <deque>
#include <map>
#include <set>
#include <unordered_set>
#include <queue>
#include <stack>
#include <list>
#include <unordered_map>
#include <bitset>
#include <sstream>
#include <new>
#include <typeinfo>
#include <iterator>
#include <cassert>

typedef long long ll;
typedef unsigned long long ull;
constexpr ll mop = 1000000007;
constexpr ll mop2 = 998244353;

using namespace std;

constexpr ll NOT_SPECIFIED_VALUE_MIN = INT64_MIN;
constexpr ll NOT_SPECIFIED_VALUE_MAX = INT64_MAX;

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

C++: #include<iostream>
#include<string>
using namespace std;
int main()
{
	string s;
	char temp;
	int i, len;
	while (cin >> s)
	{
		len = s.length();
		for (i = 0; i < len / 2; i++)
		{
			temp = s[i];
			s[i] = s[len - 1 - i];
			s[len - 1 - i] = temp;
		}
		cout << s << endl;
	}
	return 0;
}

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