Go: package main

import (
	"bufio"
	"os"
	"fmt"
)

func reverse(s string) string {
	runes := []rune(s)
	for i, j := 0, len(runes)-1; i < j; i, j = i+1, j-1 {
		runes[i], runes[j] = runes[j], runes[i]
	}
	return string(runes)
}

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	scanner.Scan()
	input := scanner.Text()
	fmt.Println(reverse(input))
}

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

using namespace std;

int main()
{
	char ar[25];
	gets(ar);
	reverse(ar,ar + strlen(ar));
	puts(ar);	 
	return 0;
}

C++: #include<stdio.h>
#include<string.h>
#include<stack>
#include<algorithm>
using namespace std;
void out (   )
{
    char c;
    scanf("%c",&c);
    if (c=='\n')
        return ;
    out();
    printf("%c",c);
}
int main()
{
    out();
    return 0;
}

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

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

scanf("%s", str);

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

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

return (0);
}

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

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

int main(){
  std::string str;

  std::cin >> str;

  int n = str.size();
  for(int j=n-1;j>=0;j--){
    std::cout << str[j];
  }
  std::cout << std::endl;
}

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

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

C++: #include <iostream>
using namespace std;
int main(void){
    char str[100];
    int i;
    int count=0;
    
    scanf("%s",str);
    
    for(i=0;str[i]!='\0';i++){
        count++;
    }
    for(i=count-1;i>=0;i--){
        printf("%c",str[i]);
    }
    printf("\n");

    return 0;
}

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

C++: #include <iostream>
#include <string>
#include <map>
#include <vector>
#include <deque>
#include <queue>
#include <stack>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <complex>
#define rep(i, b) for(int i = 0; i < (b); i++)
#define repi(i, a, b) for(int i = (a); i < (b); i++)
#define repd(i, a, b) for(int i = (a); i >= (b); i--)
#define ALL(u) (u).begin(), (u).end()
#define INF 100000000

using namespace std;
typedef long long ll;

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

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

int main() {
    std::string str;
    std::cin >> str;

    std::reverse(str.begin(), str.end());
    std::cout << str << std::endl;

    return 0;
}

C++: //include
//------------------------------------------
#include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>
#include <fstream>
#include <complex>
#include <math.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();}

//math
//-------------------------------------------
template<class T> inline T sqr(T x) {return x*x;}

//typedef
//------------------------------------------
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef pair<long, long> PLL;
typedef long long LL;
//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())

//repetition
//------------------------------------------
#define FOR(i,a,b) for(long i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)

//constant
//--------------------------------------------

//clear memory
#define CLR(a) memset((a), 0 ,sizeof(a))

const long double EPS = 1e-12;
const double INF = 1e12;

LL gcd(LL a,LL b){
	if(b==0)return a;
	return gcd(b,a%b);
}

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

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

int main() {
	const int size = 21;
	char str[size];
	std::scanf("%s", &str);

	for (int i = size - 1; i >= 0; i--)
		if (48 <= str[i] && str[i] <= 57)
			std::cout << str[i];
		else if(97 <= str[i] && str[i] <= 122)
			std::cout << str[i];

	std::cout << std::endl;
}

C++: #include<stdio.h>

int main(){
char str[21],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 <cstdio>
int main( int argc, char *argv[] ) {
	using namespace std;
	char str[20];
	fscanf(stdin, "%s", str);
	for (int i=0; i<20; i++) {
		if (str[i] == '\0') {
			int last = i-1;
			for (int j=0; j<i/2; j++) {
				swap(str[j], str[last-j]);
			}
			break;
		}
	}
	printf("%s\n", str);
	return 0;
}

C++: #include<iostream>
#include<string>
#include<cstring>
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.h>

using namespace std;

int main(){
        char str [21];

        cin >> str;

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

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

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

int main(){
  char s[30];
  scanf("%s", s);
  int n = strlen(s);
  int i;
  vector<char> v;
  for(i=n-1;i>=0;i--){
    v.push_back(s[i]);
  }
  for(i=0;i<n;i++)
    printf("%c", v[i]);
  printf("\n");

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

}

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

using namespace std;

int main()
{
    string str;
    while(cin >> str) {
        for(int i = str.size(); i >= 0; i--)
            cout << str.substr(i, 1);
    }
}

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

using namespace std;
int a;
char test[21];
char temp;

int main()
{
	scanf("%s",test);
	for(a=strlen(test)-1;a>=0;a--)
	{
	printf("%c",test[a]);
	}
	return 0; 
}