Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func read() string {
	sc.Scan()
	return sc.Text()
}

func main() {
	sc.Split(bufio.ScanLines)
	s := read()
	rv := ""
	cols := strings.Split(s, "")
	for i := 0; i < len(cols); i++ {
		rv += cols[len(cols)-1-i]
	}
	fmt.Println(rv)
}

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

int main(){

	char str[30] ={0};
	char tempstr[30] = {0};
	int a,i;

	scanf("%s",str);

	a = strlen(str);
	a=a-1;

	for(i=a;i>=0;i--)
		tempstr[a-i]=str[i];

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


	
	return 0;
}

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

int main()
{
	char s[21];
	cin.getline(s, 21, '\n');
	int l = strlen(s);
	for (int i = l - 1; i >= 0; i--)
		cout << s[i];
	return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <string.h>

using namespace std;
static const int MAXV = 21;

int main() {
  char A[MAXV]={};
  cin >> A;
  int i=0;
  for(;i<MAXV;i++) {
    //printf("%c", A[i]);
    if (A[i] == 0) break;
  }
  i--;
  for(;i!=-1;i--) {
    printf("%c", A[i]);
  }
}

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

void reverseStr(string &str){
  int n=str.length();
  for (int i=0;i< n/2;i++){
    swap(str[i], str[n-i-1]);
  }
}
int main(){
    string str;
    getline(cin, str);
    reverseStr(str);
    cout << str << endl;
    return 0;
}

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

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

C++: main(n){~n&&main(getchar())+(putchar(n-1?n:10));return 0;}

C++: #include<iostream>
#include<cstdio>
#include<utility>
#include<climits>
#include<cmath>
using namespace std;

int main()
{
	int i, j;

	char str[20] = {};
	for (i = 0; cin >> str[i]; i++)
	{}

	for (j = i; j >= 0; j--)
	{
		cout << str[j] << 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];

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

	return 0;
}

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

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

int main(){
  char s[21];
  cin>>s;
  string str(s);
  for(string::reverse_iterator r = str.rbegin();r!=str.rend();r++) cout<<*r;
  cout<<endl;
  return 0;
}

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

#define rep(i,n) for(ll (i)=0;(i)<(ll)(n);(i)++)
#define all(x) (x).begin(),(x).end()
#define MOD 1000000007LL
#define INF (1LL<<60LL)
#define int long long
typedef long long ll;

using namespace std;



signed main() {
	string s; cin >> s;
	reverse(all(s));
	cout << s << endl;
}

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

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

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

int main() {
	string s;
	cin >> s;
	cout << string(s.rbegin(),s.rend()) << endl;
	return 0;
}

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

using namespace std;

int main(){
    int size;
    char str[21];
    cin >> setw(21) >> str;
    size = strlen(str);
    for(int i=size-1;0<=i;i--){
        cout << str[i];
    }
    cout << 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<bits/stdc++.h>
#define loop(i, a, b) for(int i = a; i < b; i++) 
#define rep(i, a) loop(i, 0, a)
using namespace std;
const int MOD = 1000000007;
const int inf = 1e8;
using vi = vector <int>;
using vvi = vector <vi>;
using vc = vector <char>;
using vvc = vector <vc>;
using vs = vector <string>;
using vvs = vector <vs>;
//g++ -std==c++14
//setprecision(10)
string str;

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

C++: #include<iostream>
using namespace std;
int main(){
  char str[20];
  cin>>str;
  for(int i=20;i>0;i--)
    cout<<str[i-1];
  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-1];
	}
	cout << endl;
	return 0;
}

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++: // 2011/05/30 Tazoe

#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];
	cout << endl;

	return 0;
}

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

int main()
{
  char s[21],tmp;
  int len;

  while(cin >> s){
    len = 0;
    while(s[len++]);
    for(int i=0;i<(len-1)/2;i++){
      tmp = s[i];
      s[i] = s[len-i-2];
      s[len-i-2] = tmp;
    }
    s[len-1] = '\0';

    cout << s << endl;
  }
  return 0;
}

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

using namespace std;

int main(){
	string s;
	cin >> s;

	reverse(s.begin(), s.end());
	cout << s << endl;


}

C++: #include<iostream>
#include<cstring>
using namespace std;
int main(void){
  string str;
  int len;

  while(cin >> str){
  len=str.length();

  for(int i=len;i>=0;i--){
    cout << str[i] ;

  }
  cout<<str[len+1];
  cout << endl;
  }
  return 0;

}

C++: #include<stdio.h>
#include<stdlib.h>
int main(void){
  char a,b,i,j;
  char rarara[1000];
  char papapa[1000]; 
 gets(rarara);
 for(i=0;rarara[i]!=NULL;i++){};
 a=i;
  for(i=0;i<a;i++)
    papapa[i]=rarara[a-i-1];
  papapa[a]=NULL;
  printf("%s\n",papapa);
  return;
}

C++: #include <cstdio>
#include <stack>

using namespace std;

int main()
{
	char str[21];
	stack<char> stk;

	fgets( str, sizeof( str ) - 1, stdin );

	for ( int i = 0; str[i] != '\n'; i++ )
	{
		stk.push( str[i] );
	}

	while ( !stk.empty() )
	{
		putchar( stk.top() );
		stk.pop();
	}	

	return 0;
}

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

int main(){
  int i=0;
  char str[25], rts[25];
  cin >> str ;
  while(1){
    if(str[i]=='\0'){
      break;
    }
    i++;
  }

  
  for(int j=0;i>0;j++){
    rts[j]=str[i-1];
    i--;
  }
  cout << rts << endl;
  return 0;
}

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

int main(){
    std::string str;
    std::cin >> str;
    const int size = str.size();
    for(int i = 0; i < size; ++i){
        if(i != size - 1){
            std::cout << str.back();
        }else{
            std::cout << str.back() << std::endl;
        }
        str.erase(str.size() - 1, 1);
    }
    return 0;
}

C++: #include <cstdio>
#include <cstring>
 
int main(){
 char str[21];
 scanf("%s",str);
 for(int i = strlen(str) - 1;i >= 0;i--){printf("%c",str[i]);}
 return 0;
}

C++: #include <stdio.h>

int main(){

	int i;
	char str[20] = {};
	
	scanf("%s", str);
	
	for (i = 0; i < 20; i++){
		if (str[19 - i] >0){ printf("%c", str[19-i]); }
	}

	return 0;
}

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

int main(){
	std::string st;
	
	std::cin >> st;
	
	while(!(st.empty())){
		std::cout << st.back();
		st.pop_back();
	}
	
	return 0;
}