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

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

C++: #include <stdio.h>

int main(void)	
{
	char str[21];
	
	int i, j;
	
	
	scanf("%s", str);
	
	for(i = 0; i < 21; i++)
	{
		if(str[i] == '\0')
		{
			for(j = i - 1; j >= 0; j--)
			{
				printf("%c", str[j]);
			}
			putchar ('\n');
			break ;
		}
		
	}
	
	return 0;
}

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

int main(void)
{
char str[256];
char rev[256];

for (int i = 0; str[i] != '\0'; i++){
rev[i] = str[strlen(str) - 1 - i;
}
rev[strlen(str)] = '\0';

printf("%s", rev);

return (0);
}

C++: #include <stdio.h>
int main()
{
    char ch[20];
    int i,j;
    gets(ch);
    j=strlen(ch);

    for(i=j-1;i>=0;i--)

    {
        printf("%c",ch[i]);
    }

    printf("\n");

    return 0;

}

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

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

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

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

  for (std::string::reverse_iterator iter = s.rbegin();
       iter != s.rend(); ++iter) {
    std::cout << *iter;
  }
  std::cout << std::endl;
  return 0;
}

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

C++: print raw_input().strip()[::-1]

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

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

C++: #include<stdio.h>

int main(void)
{
	int i, len;
	char str[21], rev[21];

	scanf("%s", str );

	for( i = 0; str[i] != '\0'; i++ ){}

	len = i - 1;

	for( i = 0; len >= 0; i++, len-- ){
		rev[i] = str[len];
	}

	rev[i] = '\0';

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

	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<<\n<<endl;
return 0;
}

C++: //
//  main.cpp
//  CppTest
//
//  Created by Ryu on 2017/02/08.
//  Copyright ?? 2017??´ Ryu. All rights reserved.
//

#include <iostream>
#include <algorithm>
#include <cstdio>
#include <cmath>
using namespace std;

int main(int argc, const char * argv[]) {
    // insert code here...
    cin.tie(0);
    ios::sync_with_stdio(false);
    
    char x;
    char str[20];
    int n = 0;
    while (cin.get(x)) {
        str[n] = x;
        //printf("%c", str[n]);
        n++;
    }
    
    
    for(int i = 0; i < n; i++){
        printf("%c", str[n - i - 1]);
    }
    printf("\n");
    
    return 0;
}

C++: #include <functional>
#include <algorithm>
#include <iostream>
#include <sstream>
#include <cstring>
#include <iomanip>
#include <fstream>
#include <climits>
#include <cctype>
#include <cstdio>
#include <string>
#include <vector>
#include <bitset>
#include <queue>
#include <stack>
#include <cmath>
#include <ctime>
#include <deque>
#include <list>
#include <map>
#include <set>
using namespace std;

/*** typedef ***/
typedef long long LL;
typedef unsigned int ui;
typedef unsigned long long ULL;
typedef pair < int , int > ii;
typedef pair < LL  , LL  > ll;
typedef vector <int>  vint;
typedef vector <bool> vbool;
typedef vector <long> vlong;

/*** define ***/
#define sz(x)			((int)x.size())
#define tin(x)			scanf("%d",&x)
#define all(x)			x.begin(),x.end()
#define Set(b,a)		memset(b,a,sizeof b)
#define print1(x)		printf("Case %d:",x++)
#define tin2(x,y)		scanf("%d%d",&x,&y)
#define tin3(x,y,z)		scanf("%d%d%d",&x,&y,&z)
#define loop(i,i0,in)	for(int i=i0 ; i<in ; i++)
#define rep(i,n)		for(int i=0 ; i<(n) ; i++)
#define _rep(i,n)		for(int i=n-1 ; i>=0 ; i--)
#define _loop(i,in,i0)	for(int i=in-1 ; i>=i0 ; i--)
#define Fore(it, x)		for(typeof (x.begin()) it = x.begin(); it != x.end (); it++)
     
int main()  
{  
#ifdef Online_Judge
	freopen("a.in","r",stdin);
#endif
	string s;
	getline(cin,s);
	reverse(all(s));
	cout << s << endl;
	return 0;
}

C++: #include<stdio.h>
#include<string.h>
int main(){
    char str [20];
    gets(str );
    strrev(str );
    printf("%s",str );
    return 0;
}

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

#define REP(i, x) for (int i = 0; i < (int)(x); i++)
#define REPS(i, x) for (int i = 1; i <= (int)(x); i++)

int main(int argc, char *argv[])
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);

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

    return 0;
}

C++: #include <stdio.h>

int main(){
	
	char a[25],b[25]={'0'};
	int s,t;
	
	scanf("%s",a);
	
	for(s=0;a[s]!='\0';s++)
	
	for(t=0;a[t]!='\0';t++){
		
		b[s-t]=a[t];
		
	}
	
	printf("%s",b);
	
	return 0;
}

C++: #include<iostream>
#include<string>
//入力された文字列を逆順に出力
using namespace std;

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

C++: #include<stdio.h>



int main(){
	char c[20];

	scanf("%s",&c);
	int i;

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


	return 0;
}

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

int main()
{
    char str[100];
    int len;
    while(scanf("%s",str))
    {
        len=strlen(str);
        reverse(str, str+len);
        printf("%s\n",str);
    }
    return 0;
}

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

string s;

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

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

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 <bits/stdc++.h>
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(){
	string str;
	cin>>str;
	for(int i=str.size();-1<i;i--){
		cout<<str[i];
	}
	cout<<endl;
}

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

C++: #include<stdio.h>
int main(){
char str[21];
int i;
scanf("%s",str);
for(i=0;;i++){
if(str[i]==/0)
break;
}
for(;i>0;i--){
printf("%s",str[i]);
}
printf("\n");
}

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

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

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

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

int main(){
	std::string str;
	std::cin >> str; // input
	
	str.reverse(); //use reverse function
	std::cout << str << std::endl; // output
	return 0;
}