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 <cmath>
#include <cstring>
#include <cstdlib>
#include <climits>
#include <ctime>
#include <queue>
#include <stack>
#include <algorithm>
#include <list>
#include <vector>
#include <set>
#include <map>
#include <iostream>
#include <deque>
#include <complex>
#include <string>
#include <iomanip>
#include <sstream>
#include <bitset>
#include <valarray>
#include <iterator>
using namespace std;
typedef long long int ll;
typedef unsigned int uint;
typedef unsigned char uchar;
typedef unsigned long long ull;
typedef pair<int, int> pii;
typedef vector<int> vi;

#define REP(i,x) for(int i=0;i<(int)(x);i++)
#define FOR(i,c) for(__typeof((c).begin())i=(c).begin();i!=(c).end();i++)
#define RREP(i,x) for(int i=((int)(x)-1);i>=0;i--)
#define RFOR(i,c) for(__typeof((c).rbegin())i=(c).rbegin();i!=(c).rend();i++)
#define ALL(container) container.begin(), container.end()
#define RALL(container) container.rbegin(), container.rend()
#define SZ(container) ((int)container.size())
#define mp(a,b) make_pair(a, b)
#define UNIQUE(v) v.erase( unique(v.begin(), v.end()), v.end() );

template<class T> bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T> bool chmin(T &a, const T &b) { if (a>b) { a=b; return 1; } return 0; }
template<class T> ostream& operator<<(ostream &os, const vector<T> &t) {
os<<"["; FOR(it,t) {if(it!=t.begin()) os<<","; os<<*it;} os<<"]"; return os;
}
template<class T> ostream& operator<<(ostream &os, const set<T> &t) {
os<<"{"; FOR(it,t) {if(it!=t.begin()) os<<","; os<<*it;} os<<"}"; return os;
}
template<class S, class T> ostream& operator<<(ostream &os, const pair<S,T> &t) { return os<<"("<<t.first<<","<<t.second<<")";}

const int INF = 1<<28;
const double EPS = 1e-8;
const int MOD = 1000000007;


string s;

main(){
	while(cin >> s){
reverse(ALL(s));
		cout << s << endl;
	}
	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<stdio.h>
int main(){
    char str[20]={0},i;
    scanf("%s",&str);
    for(i=19;i>=0;i--){
        if(str[i]!=0)printf("%c",str[i]);
    }
    printf("\n");
    return 0;
}

C++: #include <stdio.h>

int main(void){
	char buff[128];
	char *p;
	scanf("%s",buff);
	p=buff;
	p=p+strlen(buff);
	while(p!=buff){
		putchar(*(--p));
	}
	putchar('\n');
	return 0;
}

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

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

C++: #include <stdio.h>

int main (void)
{
	char str[21], new_str[21];
	gets(str);
	
	int i;
	for(i=0; i<21; i++){
		new_str[i]='\0';
	}
	
	for(i=0; i<20; i++){
		if(str[i]=='\0' || str[i]=='\n'){break;}
		new_str[20-i]=str[i];
	}
	
	for(i=0; i<21; i++){
		if(new_str[i]!='\0'){printf("%c", new_str[i]);}
	}
	
	printf("\n");
	return 0;
}

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


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

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

using namespace std;

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

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

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

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

int main(){
  string s;
  cin >> s;
  int k;
  for(k=s.size();k>=0;k--){
    printf("%c",s[k]);
  }printf("\n");
  return 0;
}

C++: //============================================================================
// Name        : 0006.cpp
// Author      : 
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
using namespace std;

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

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

using namespace std;

int main()
{
    char s[21];
    cin >> s;
    int l=strlen(s);
    char b[l];
    int a=0;
    for(int i=l-1;i>=0;i--){
        b[a]=s[i];
        a++;
    }
    b[a]='\0';
    cout << b << endl;

    return 0;
}

C++: #include <iostream>
#include<string>
#include<cmath>
#include<algorithm>
#include<cctype>
#include<queue>
#include<stack>
#include<stdio.h>
#include<vector>
#include<set>
#include<map>
#include<iomanip>
#define rep(i,n) for(int i=0;i<n;i++)
typedef int long long ll;

using namespace std;
int main(){

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




return 0;
}

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

int main(void)
{
	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() {
	char str[21];
	cin >> str;
	int length = strlen(str);
	int x;
	for (int i = 0; i < length; i++){
		x = length - i - 1;
		cout <<str[x];
	}
	cout << "\n";

	return 0;
}

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

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

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

using namespace std;

void sort(char *str){
	int len, len3 = 0;
	char str2[20], work; 
	len = strlen(str);

	for(int len2 = 0; len > len2; len2++){
		str2[len2] = str[len2];
	}

	for(len = len - 1; len >= len3; len--,len3++){
		work = str[len];
		str[len] = str[len3];
		str[len3] = work;
	}
}

int main(){
	char str[20];
	while (cin >> str) {
		sort(str);
		cout << str << endl;
	}
	return 0;
}

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

int main(void) {
    std::string s;
    std::string t = "";
    std::cin >> s;
    for (int i = s.length() - 1; i >= 0; i--) {
        t += s[i];
    }
    std::cout << t << std::endl;
    return 0;
}

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

int main(){
	int i;
	char s[21];

	scanf("%s",s);
	for(i=0;s[i]!='\0';i++);
	if(i>0) i--;
	for(;i>=0;i--) std::cout<<s[i];
	std::cout<<std::endl;
	system("pause");
	return 0;
	}

C++: #include <iostream>
#include <vector>
#include <math.h>
#include <string>

int main(void);
std::string rev_string(std::string str);

int main(){
	std::string str = "";
	std::cin >> str;
	std::cout << rev_string(str);

	//while (1);
	return 0;
}

std::string rev_string(std::string str){
	int i;
	int len = str.length();
	for (i = 0; i < len / 2; i++) {
		char temp = str[i];
		str[i] = str[len - i - 1];
		str[len - i - 1] = temp;
	}

	return str;
}

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

using namespace std;

int main() {

  string str;

  while(cin >> str) {

    reverse(str.begin(),str.end());

    cout << str << endl;

  }

  return 0;

}

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

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

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

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