Go: package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		str := []rune(scanner.Text())
		for i:=len(str)-1; i>=0; i-- {
			fmt.Printf(string(str[i]))
		}
		fmt.Println()
	}
}

C++: #include <stdio.h>

    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<bits/stdc++.h>
#define pb push_back
using namespace std;
typedef long long ll;
struct edge{int to;ll cost;};
typedef pair<ll,int> P;
const ll INF=1000000000000LL;
const ll MOD=1000000007LL;
const ll MAX=100010;
int main(){
	string  s;
	cin>>s;
	reverse(s.begin(),s.end());
	cout<<s<<endl;
	return 0;
}

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


int main()
{
        int i; 
       string str;

       cin >> str;
       
        for ( i = str.length()-1;i>=0; i--) {
              cout << str[i];
       }
        cout << endl;
        return 0;
}

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

int main(){
    int cut=1;
    char c[21]={0};
    for(int i=0;i<20;i++){
        scanf("%c",&c[i]);
        if(c[i]=='\n')break;
            cut++;
        if (48<=c[i]&&c[i]<=57)c[i]+=0;
        else if (65<=c[i]&&c[i]<=90)c[i]+=0;
        else if (97<=c[i]&&c[i]<=122)c[i]+=0;
        else{
            c[i]='\0';
            }
    }
    for(int j=cut;j>-1;--j){
        printf("%c",c[j]);
    }
        cout <<""<<endl;
    return 0;
}

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

int main(){
	char str[30], *end_p;
	int end;;
	cin >>str;
	
	end_p = strrchr(str, '\0');
	end = end_p - str;
	
	for(int i = (end - 1); i >= 0; i--){
		cout <<str[i];
	}
	
	cout <<endl;
	return 0;
}

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

using namespace std;

int main(void){

  string hoge;

  cin >> hoge;

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

C++: #include <iostream>
#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 <iostream>
#include <string>
#include <vector>
#include <deque>
#include <queue>
#include <stack>
#include <map>
#include <algorithm>
#include <set>
#include <sstream>
#include <numeric>
#include <bitset>
#include <complex>
#include <iomanip>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <climits>
#include <cctype>
#include <cassert>
using namespace std;
 
typedef long long ll;
static const double EPS = 1e-8;
static const double PI = 4.0 * atan(1.0);
bool ISINT(double x){return fabs(x-(int)round(x))<EPS;}
bool ISEQ(double x,double y){return fabs(x-y)<EPS;}
string itos(ll x){stringstream ss;ss<<x;return ss.str();}
#define foreach(itr,c) for(__typeof(c.begin()) itr=c.begin();itr!=c.end();itr++)
 
int main(void){
  string s;
  cin >> s;
  reverse(s.begin(), s.end());
  cout << s << endl;
}

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

int main(){
	char str[21],reverse[21];
	int num,i;
	num=scanf("%21s",str);
	
	for(i=0;i<21;i++){
		if (str[i]==EOF) break;
	}
	
	num=strlen(str)-1;//i-1;
	
	for(i=0;i<=num;i++){
		reverse[i]=str[num-i];
	}
	
	printf("%s\n",reverse);
	
	return 0;
}

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

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

C++: main(a){~scanf("%c",&a)&&(main(),printf("%c",a));}

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

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

int main()
{
	std::string str;
	std::cin >> str;
	for (auto e = str.rbegin(); e < str.rend(); ++e)
		std::cout << *e;
	std::cout << std::endl;

	return 0;
}

C++: #include <cstdio>
#include <iostream>
#include <cmath>
#include <ctype.h>
#include <string> 
#include <sstream>
#include <iostream>
#include <algorithm>
#include <cstdlib>
#include <map>
#include <queue>
#include <utility>
#include <vector>
#include <set>
#include <list>
#include <cstring>
#include <stack>
   
using namespace std;

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

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

C++: #include<iostream>

using namespace std;

int main()
{
    string str;
    cin >> str;
    string rev(str.rbegin(), str.rend());
    cout << rev;
}

C++: #include<iostream>
using namespace std;
int main(){
  int i; int l  = 0;
	   char str[21]; char str1[21];
  cin >> str;
  for(i=0;str[i] != '\0';){i++;}
    for(int k = i-1;k >=0 ;l++, k--){
    str1[l] = str[k];    
  }
  cout << str1 << endl;
}

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

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

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

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



int main(void){
	
	string str;
	getline(cin, str);


	for (int i = 0; i < (str.length()/2); i++){
	
		swap(str[i], str[str.length() - i-1]);
	}


	for (int i = 0; i<str.length(); i++){

		cout << str[i];
	}cout << endl;

	
	return 0;
}

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

#include <stdio.h>
#include <stdlib.h>
#include <string.h>


int main()
{
	char str[21] = "\0";
	int X;

	scanf("%s", str);

	for (X = strlen(str)-1; X > 0; X--)
	{
		if (X <= (strlen(str) - 1) - X)
			break; 

		str[(strlen(str)-1) - X] ^= str[X];
		str[X] ^= str[(strlen(str)-1) - X];
		str[(strlen(str)-1) - X] ^= str[X];
	}
	printf("%s\n", str);

	return 0;
}
int main()
{
	char str[21] = "\0";
	int X;

	scanf("%s", str);

	for (X = strlen(str)-1; X > 0; X--)
	{
		if (X <= (strlen(str) - 1) - X)
			break; 

		str[(strlen(str)-1) - X] ^= str[X];
		str[X] ^= str[(strlen(str)-1) - X];
		str[(strlen(str)-1) - X] ^= str[X];
	}
	printf("%s\n", str);

	return 0;
}

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

int main(void){

	string text;
	cin>>text;
	reverse(text.begin(), text.end());
	cout<<text<<endl;
	return 0;
}

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

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

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

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 >= 0; i--) {
		cout << str[i];
	}
    return 0;
}