Go: package main

import (
  "fmt"
)

func main() {
  var a string
  fmt.Scan(&a)
  for i:= len(a) -1; i>=0; i-- {
    fmt.Print(string(a[i]))
  }
  fmt.Println()
}

C++: #include <iostream>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <algorithm>
#include <functional>

using namespace std;

int gcd( int, int );

int main()
{
	char str[21];

	while ( fgets( str, sizeof( str ), stdin ) )
	{
		for ( int i = strlen( str ) - 2; 0 <= i; i-- )
		{
			putchar( str[i] );
		}
		putchar('\n');
	}

	return 0;
}

C++: #include<stdio.h>
#include<string.h>
int main() {
   char r[20],temp;
   int i,j=0;
   gets(r);
   i = 0;
   j = strlen(r) - 1;
   while (i < j) {
      temp= r[i];
      r[i]=r[j];
      r[j]=temp;
      i++;
      j--;
   }
   printf("%s\n",r);
   return (0);
}

C++: #include<string>
#include<vector>
#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstdlib>
#include<sstream>
#include<functional>
#include<map>
#include<set>
#include<cmath>

#define REP(i,s,e) for(int i=int(s);i<int(e);i++)
#define rep(i,n) for(int i=0;i<int(n);i++)

using namespace std;

int main(){

	string str;
	cin >> str;

	int n=str.size();
	rep(i,n)
	cout << str[n-1-i];
	cout << endl;

    return 0;

}

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

int main() {
    
    string str;
    string::reverse_iterator rStr;
    cin >> str;
    for(rStr = str.rbegin(); rStr < str.rend(); rStr++) cout << *rStr;
    return 0;
}

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

int main(int,char**){
	std::string str;
	std::cin >> str;
	for(int i(str.size());i>=0;--i){
		std::cout << str[i];
	}
	return 0;
}

C++: #include<stdio.h>
#include<string.h>
int void()
{
    char str[20];
    gets(str);
    strrev(str);
    puts(str);
}

C++: #include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(){
  string str;
  cin >> str;
  reverse(str.begin(), str.end());
  cout << str << endl;
}

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

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

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

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 s;
	cin>>s;
	for(int i=s.size();i>=0;i--){
		cout<<s[i];
	}cout<<endl;
}

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

using namespace std;

void sort(char *str){
	int len, len2 = 0;
	char work; 
	len = strlen(str);

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

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

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

int main(){

	string str;
	int i, l;

	cin >> str;

	l = str.size();

	for( i=1; i<=l; i++ ){
		cout << str[ l - i ];
	}

	cout << 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;
}

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

int main(void) {

	//0005
	/*
	int a, b, G, R, L, r;
	while (cin >> a >> b) {
		R = a;
		L = b;
		int tmp;
		if (b > a) {
			tmp = a;
			a = b;
			b = tmp;
		}
		while (1) {
			r = a%b;
			if (r == 0)break;
			a = b;
			b = r;
		}
		G = b;
		R = R / G;
		L = L / G;
		cout << G << " " << R*L * G << endl;
	}
	*/

	string name;
	cin >> name;
	int L = name.size();
	string a, Ans;
	for (int i = 0; i < L; i++) {
		a = name.substr(L-i-1, 1);
		Ans += a;
	}
	cout << Ans << endl;
	return 0;
}

C++: #include<stdio.h>

int main()
{
	char str[30];
	char str2[30];
	int i;
	
	scanf("%s",str);
	
	for(i = 0; str[i] != '\0'; i++){
	}
	for(;i > -1; i--){
		printf("%c",str[i-1]);
	}
	return 0;
}

C++: #include <iostream>
#include <vector>
#include <cmath>
#include <map>
#include <algorithm>
 
typedef long long ll;
using namespace std;
 
int main()
{
  string buf;
  cin >> buf;
  reverse(buf.begin(),buf.end());
  cout << buf << endl;
}

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

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

C++: #include <stdio.h>
int main(void){
    char s[22]={'\n'},*p;
    gets(s+1);
    for(p=s;*++p;);
    for(p--;s<=p;p--)putchar(*p);
    return 0;
}

C++: #include <iostream>
#include <vector>
#include <algorithm>
#include <string>
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;
#define rep(i,n) for(int i=0; i<(n); i++)
#define FOR(i,x,n) for(int i=x; i<(n); i++)
#define ALL(n) begin(n),end(n)
#define MOD (1000000007)
#define INF (1e9)
#define INFL (1e18)

typedef long long ll;
typedef unsigned int ui;
typedef unsigned long long ull;
template<class T>using arr=vector<vector<T>>;
template<class T>void pr(T x){cout << x << endl;}
template<class T>void prvec(vector<T>& a){rep(i, a.size()-1){cout << a[i] << " ";} cout << a[a.size()-1] << endl;}
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 (b<a) { a=b; return 1; } return 0; }

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

C++: #include <cstdio>
#include <algorithm>
int main( int argc, char *argv[] ) {
	using namespace std;
	char str[20];
	fscanf(stdin, "%s\n", 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>

int main(){
    std::string str;
    while(std::cin >> str){
        for(auto it=str.rbegin(); it!=str.rend(); ++it)
            std::cout << *it ;
    }
}

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

using namespace std;

int main(void)
{
	string a;
	cin>>a;
	for(int i=0;i<a.size()/2;i++){
		char tmp=a.at(i);
		a.at(i)=a.at(a.size()-i-1);
		a.at(a.size()-i-1)=tmp;
	}
	cout<<a;
}

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

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

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

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

char str[30] ;

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

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

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

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

    return 0;
}

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

int main(void)
{
	char str[20];
	char str2[20];
	int len;
	int i;
	
	scanf("%s", str);

	len = strlen(str);

	i = 0;

	while (len != 0){
		str2[i] = str[len - 1];
		len--;
		i++;
	}
	 str2[i] = '\0';

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

	 return (0);
}