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 <iostream>

#define MAX 20

using namespace std;

int main() {
	char str[MAX];
	cin >> str;

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

	return 0;
}

C++: #include <stdio.h>
#include<string.h>
int main(void){
  
  int i,j,n;
  i=0;
  j=0;
  char a[20],b[20];
  
  gets(a);
  n = strlen(a);

  for(i=n-1;i>=0;i--)
    {
      b[n-1-i]=a[i];
    }
  b[n]='\0';

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

C++: #include<iostream>

int main(){
  char str[20];

  int i =0;
  while(std::cin >> str[i]){
    ++i;
  }
  for(int j=i;j!=0;j--){
    std::cout << str[j];
  }
  std::cout << std::endl;
}

C++: #include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(void){
    string str;
    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 n;
  //  int a;
  //  char b;
    getline(cin,n);
  //  a = n.GetLength();
   reverse(n.begin(),n.end());
  //  for(int i=0;i<a/2;i++){
  //    b = n[i];
  //    n[i] = n[a-i-1];
  //    n[a-i-1] = b;
  //  }

  cout << n << endl;
 
 return 0;
}

C++: /*****include*****/
#include <iostream>
#include <fstream>

/*****デバッグ定義*****/
//#define DEBUG
/*****マクロ定義*****/

/*****名前空間*****/
using namespace std;

/*****グローバル変数置き場*****/

/*****その他関数置き場*****/

/*****main関数*****/
int main(){
	/*****ファイルオープン*****/
#ifdef DEBUG
	ofstream fout("output.txt");
	ifstream fin("input.txt");
	if(!fout || !fin){
		cout << "Can't open the file.\n";
		return;
	}
#endif
	/*****変数置き場*****/
	char word[21];
	cin >> word;
	int last=0;
	while(word[last] != '\0')	last++;
	int i = 0;
	char exc;
	while(i < last-i-1){
		exc = word[i];
		word[i] = word[last-i-1];
		word[last-i-1] = exc;
		i++;
	}
	i = 0;
	while(word[i] != '\0'){
		cout << word[i];
		i++;
	}
	cout << endl;
	/*****処理部*****/
	
	/*****処理終了後*****/
#ifdef DEBUG
	fout.close();
	fin.close();
#endif
	return 0;
}

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

int main(){
	char w[20];
	cin >> w;

	for(int i=strlen(w)-2; i>=0; i--){
		cout << w[i];
	}
	cout << " " << endl;
	return 0;
}

C++: #include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main(void){
    string str;
    cin >> str;
    reverse(str.begin(), str.end());
    cout << str << endl;
}

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

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

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

using namespace std;

int main(){
  char str[1000];

  int length;

 cin>>str;

 length=strlen(str);

 for(int n=length-1;n>=0;n--){
	cout<< str[n];
 }




 

















return 0;
}

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

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

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

using namespace std;

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

	return 0;
}

C++: #include <iostream>
#include <string>
#include <map>
#include <vector>
#include <set>
#include <iomanip>
#include <fstream>
#include <stdint.h>
#include <cmath>
#include <algorithm>
#include <utility>
#include <numeric>
using namespace std;

constexpr int INF       = 1000000000;/* 1e+9a */
constexpr int MODULO    = 1000000007;

#define REP(i,f,n) for(int i=(f); i < (n); ++i)
#define PER(i,f,n) for(int i=(n-1); i >= f; --i)

//----------------------------------
//----------------------------------

signed main()
{
    ios::sync_with_stdio(false);
	string s;
	cin >> s;
	PER(i, 0, s.size())
		cout << s[i] << endl;
}

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

using namespace std;

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

C++: #include <stdio.h>

int main( void ){
    char str[20];
    scanf( "%s",str );
    for( int i = strlen( str ) - 1;i >= 0;i-- ){
        printf( "%c",str[i] );
    }
    printf( "\n" );
    return 0;
}

C++: #include<stdio.h>

int main(){
    int i;
    char s[20];
    for(i=0;i<20;i++)s[i]='\0';
    scanf("%s",s);
    for(i=20-1;i>=0;i--)
        if(s[i]!='\0')printf("%c",s[i]);

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

C++: #include<iostream>
#include<string.h>
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 <stdio.h>
#include <string>
int main()
{
char p[20];
int i;
gets(p);
for(i=(strlen(p)-1);i>=0;i--)
 printf("%c",p[i]);
printf("\n");
	return 0;
}

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

#define MAX 20

int main(){
	char str[MAX + 1];

	cin >> str;

	int flag = 0, i = 0;
	while( !flag || i >= 0){
		if( flag ){
			cout << str[i--];
		} else {
			if(str[i] == '\0'){
				i--;
				flag = 1;
			} else {
				i++;
			}
		}
	}
	cout << endl;
	return 0;
}

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

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

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

using namespace std;

int main(){
  char str[1000];

  int length;

 cin>>str;

 length=strlen(str);

 for(int n=length-1;n>=0;n--){
	cout<< str[n];
 }




 

















return 0;
}

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

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

#define INPUT_FROM_FILE (0)
#if INPUT_FROM_FILE
#include <fstream>
#endif

int main(int argc, char **argv){
#if INPUT_FROM_FILE
	std::ifstream ifs("test.txt");
#endif
	std::string str;

#if INPUT_FROM_FILE
	ifs >> str;
#else
	std::cin >> str;
#endif

	for(int i = str.size() - 1; i >= 0; i--){
		std::cout << str.at(i);
	}
	std::cout << std::endl;
	return 0;
}

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

using namespace std;

int main() {
    int i,len;
    string ch;

    cin >> ch;

    len = ch.length();

    for(i = 0;i < len / 2;i++){
        int box = ch[i];
        ch[i] = ch[len - i];
        ch[len - i] = box;
    }

    for(i = 0; i <= len;i++){
        cout << ch[i];
    }
    cout << endl;

    return 0;
}

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

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

int main(void) {
    std::string str;

    std::cin >> str;
    std::for_each(str.crbegin(), str.crend(), [](const char& ch) {
        std::cout << ch;
    });
    std::cout << std::endl;

    return 0;
}

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