Go: package main

import "fmt"

func main() {
	var str string
	var result string

	fmt.Scanf("%s", &str)

	for i := len(str) - 1; i >= 0; i-- {
		result += string(str[i])
	}

	fmt.Println(result)
}

C++: //include
//------------------------------------------
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#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>

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 long long LL;
typedef unsigned long long ULL;

//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(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)

//constant
//--------------------------------------------
const double EPS = 1e-10;
const double PI  = acos(-1.0);

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

//debug
#define dump(x)  cerr << #x << " = " << (x) << endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;

int main() {
  string str;

  cin >> str;

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

C++: #include<string.h>
#include<stdio.h>
int main(){
  char str[21];
  scanf("%s",str);
  int len=strlen(str);
  while(len!=-1){
    printf("%c",str[len]);
    len=len-1;
  }
  printf("\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 <bits/stdc++.h>
using namespace std;

int main() {
	string str;
	cin>>str;
	for(int i=str.size();i>=0;i--){
		cout<<str[i];
	}
	puts("");
	return 0;
}

C++: #include<iostream>
#include<cstring>
using namespace std;
int main(){
  char str[21];
  cin >> str;
  for(int i = strlen(str);i>=0;i--){
    cout << str[i];
  }
  cout << endl;
}

C++: #include<iostream>
using namespace std;
	
int main()
{
	char change[19];
	cout<<"??????????????\????????????????????????\n";
	cin>>change[19];
	int j=strlen(change);
	j-=1;
	for(int i=j;i>=0;i--){
	cout<<"change[i];
	}
	return 0;
}

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

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

C++: #include<stdio.h>
int main(){
    char str[21]={0};
    int cou=0;
    scanf("%s",str);
    for(int i=0;str[i]!='\0';i++){
        cou++;
    }
    for(int i=cou-1;i>=0;i--){
        printf("%c",str[i]);
    }
    printf("\n");
    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-1];
	}
	cout << endl;
	return 0;
}

C++: #include <iostream>
#include <stdlib.h>
#include <string.h>
#include <string>
using namespace std;
int main()
{
	string s;
	cin>>s;
	cout<<strrev((char*)s.c_str())<<endl;
	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>
using namespace std;

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

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

int main(void) {
  char s[100] = {0};
  int i = 0;
  scanf("%s", s);
  i = sizeof(s)-1;
  while(i >= 0)
  putchar(s[i--]);
  
  putchar('?\n');
  return 0;
}

C++: #include <stdio.h>

int main(void){
	char str[21] = {0};
	char temp;
	int x = 1;
	int i = 0;
	
	scanf("%s", str);
	while(str[x]){
		x++;
	}
	while(x - i > i){
		temp = str[i];
		str[i] = str[x-1 - i];
		str[x-1 - i] = temp;
		
		i++;
	}



	printf("%s\n", str);
	return 0;
}

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

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

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

using namespace std;

string sort(string str){
	int len, len2 = 0;
	char work; 

	len = str.length();

	// 両端から交換
	for(len = len - 1; len > len2; len--, len2++){
		work =  str[len];
		str[len] = str[len2];
		str[len2] = work;
	}
	return str;
}

int main(){
	string str;
	cin >> str;
	str = sort(str);
	cout << str << endl;
	return 0;
}

C++: #include <stdio.h>
#include <string.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>
#include <algorithm>
using namespace std;
 
int main(){
	string s;
	while ( cin >> s ) {
		reverse( s.begin() , s.end() );
		cout << s << endl;
	}
}

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

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

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

using namespace std;

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

C++: #include <iostream>
#include <queue>
#include <vector>
#include <math.h>
#include <algorithm>
#include <iomanip>
#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<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>
using namespace std;
int main(void){
    // Your code here!
    string s;
    cin >> s;
    
    for(int i=s.length() - 1; i>=0; i--){
        cout << s[i];
    }
    cout << "\n";
}

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

int main()
{
	char Str[21];
	int StrLen;

	cin >> Str;

	StrLen = strlen( Str );

	while( 1 ){

		cout << Str[StrLen-1] << endl;

		StrLen--;

		if( StrLen == 0 ) break;
	}

	return 0;
}

C++: #include <cstdio>
#include <algorithm>
int main( int argc, char *argv[] ) {
	using namespace std;
	char str[20];
	fscanf(stdin, "%s", str);
	reverse(str, str+sizeof(str)/sizeof(char));
	printf("%s\n", str);
	return 0;
}

C++: #include<stdio.h>
#include <string.h>
int main()
{

char str[21]={};
char ch;
int n;
scanf("%s",str);
n = strlen(str);
for(int i=0;i<n;i++)
{
printf("%c",str[n-1]);
}
printf("\n");
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;
		





	
	
	
	
	

	return 0;
}