Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func main() {
	sc.Scan()
	s := sc.Text()
	l := len(s)
	r := make([]rune, l)
	for i, c := range s {
		r[l-i-1] = c
	}
	fmt.Println(string(r))
}

C++: #include <iostream>
#include <vector>
#include <algorithm>
#include <functional>
#include <iomanip>
#include <utility>
#include <string>
typedef unsigned long ul;

using namespace std;

int main(){
	int len;
	string str;
	cin >> str;
	len = str.length();
	for(int i = len-1; i >= 0; i--){
		cout << str.at(i);
	}
	cout << endl;
}

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

int main(){
	char c[20];
	int cnt=0;
	do{
		scanf("%c",&c[cnt]);
		cnt++;
	}while(c[cnt]);
	for(int i=cnt-1;i>=-1;i--){
		cout<<c[i+1];
	}
	return 0;
}

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

// A
int main() {
    ios_base::sync_with_stdio(false);

    string input;

    cin >> input;

    reverse(input.begin(), input.end());

    cout << input << endl;
}

C++: #include "bits/stdc++.h"

#define REP(i,num) for(int i=0;i<(num);++i)
#define ALL(c) c.begin(),c.end()
#define PRINTALL(c) for(auto& x:c){cout<<x<<' ';}cout<<endl;
#define PAIRCOMP(c,comp) [](const pair<ll,ll>& lhs,const pair<ll,ll>& rhs){return lhs.c comp rhs.c;}

using namespace std;
using ll = long long;

constexpr ll atcoder_mod = 1e9+7;

template<typename T=int>
T in(){T x; cin >> x; return (x);}
template<typename T=int,typename C=vector<T>>
C vecin(int N){C x(N);REP(i,N){x[i]=in<T>();}return move(x);}

void vout(){cout << endl;}
template<typename Head,typename... Tail>
void vout(Head&& h,Tail&&... t){cout << ' ' << h;vout(forward<Tail>(t)...);}
void out(){cout << endl;}
template<typename Head,typename... Tail>
void out(Head&& h,Tail&&... t){cout << h;vout(forward<Tail>(t)...);}

int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
	
	auto S=in<string>();
	reverse(ALL(S));
	
	out(S);
	return 0;
}

C++: #include <stdio.h>
int main(void){
  
  int i=0,j,n,k=0;
  char a[21],b[21];
  
  while(1)
    {
      scanf("%c",&a[i]);
      if(a[i]=='\0')break;
      i++;
    }
  
  for(j=i-2;j>=0;j--)
    {
      b[j]=a[k];
      k++;
    }
  b[j]='\0';

  printf("%s\n",b);
  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 <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;
}