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
//------------------------------------------
#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; 
}

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

int main(){
	char str[25];
	
	fill(str, str + 25, 0);
	
	scanf("%s", str);
	
	int p = 25;
	while(str[--p] == 0);
	while(p >= 0){
		printf("%c", str[p--]);
	}
	
	return 0;
}

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

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

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

int main() {
char a[21];
scanf("%s",a);
int b=strlen(a);
for(int c=b-1;c!=-1;c--)printf("a[c]");
printf("\n");
}

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

C++: #include <iostream>
#include <algorithm>
#include <vector>
#include <string>
using namespace std;
typedef long long int ll;

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;
	cin >> s;

	for(int i=s.size(); i--;){
		cout << s[i];
	}
	cout << endl;
}

C++: #include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main()
{
int i,b;
char srt[100];
gets(srt);
b=strlen(srt);
for(i=b-1;i>=0;i--)
{
    printf("%c",srt[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--) {
		cout << str[i];
	}
    return 0;
}

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

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

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

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

C++: #include<iostream>
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<algorithm>
#include<iostream>
#include<string>
using namespace std;

#define rep(i,n) for(int i=0; i<n; i++)
int main(){
	string s;
	while(cin >>s){
		for(int i=s.length(); i>=0; i--) cout << s[i];
		cout << endl;
	}
    return 0;
}