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( 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<iostream>
#include<stdio.h>
#include <string>

using namespace std;

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

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

int main(){
	std::array<char, 20>str;
	
	for(int i=0; i<20; ++i){
		std::cin >> str[i];
	}
	
	for(int i=str.size()-1; i>=0; --i){
		std::cout << str[i];
	}
	return 0;
}

C++: char b[99],*p;main(){gets(b);for(p=index(b,0);p-b;putchar(*--p));}

C++: #include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main() {
  string s;
  cin>>s;
  vector<char> c;
  for(int i=0;i<(int)s.size();i++) 
    c.push_back(s[i]);
  reverse(c.begin(),c.end());
  for(int i=0;i<(int)s.size();i++) 
    cout<<c[i];
  cout<<endl;
  return 0;
}

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

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

C++: import sys

lines = []
for line in sys.stdin:
    print(line[::-1])

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

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

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 <cstdio>
#include <cstdlib>
#include <iostream>

using namespace std;

int main()
{
    char a[30];
    char b[30];
    gets(a);
    int count = 0;
    for (int i=0; a[i]; i++)
    {
        count ++;
    }
    int i;
    for (i=0; count != 0; i++)
    {
        b[i] = a[--count];
    }
    b[i] = '\0';
    puts(b);
    return 0;
}

C++: import java.util.*;


public class Main {
	public static void main(String[] args){
	
		Scanner sc = new Scanner(System. in);
		String line = sc.nextLine();
		char[] str = line.toCharArray();
		int n = line.length();
				
		char[] rts = new char[20];
		
		for(int i=0;i<n;i++){
			rts[i]=str[n-i-1];
		}
		
		for(int i=0;i<n;i++){
		System.out.print(rts[i]);
		}
	}
}

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

C++: main(c){scanf("%c",&c)&&c^10&&main(c)*printf(&c);}

C++: #include <iostream>
using namespace std;
int main(void){
    std::string s;
    std::string::iterator iterator_s;
    cin >> s;
    for(std::string::reverse_iterator it=s.rbegin();it != s.rend(); ++it) 
        std::cout << *it ;
    std::cout << "\n";
    return 0;
}

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

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

void test();
string ReverseStr(string str);

int main(void)
{
	test();
	return 0;
}

void test()
{
	string s;

	cin >> s;

	s = ReverseStr(s);

	cout << s << endl;
}

string ReverseStr(string str)
{
	string s;
	int i, t;
	s = str;

	for (i = 0,t = str.size() - 1; i < str.size(); i++, t--)
	{
		str[i] = s[t];
	}

	return str;
}

C++: #include<iostream>
#include<string>
#include<cstdio>
//入力された文字列を逆順に出力
using namespace std;

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

C++: #include <algorithm>
#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>
#include <string>
#include <algorithm>

using namespace std;

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

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

using namespace std;

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

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

    return 0;
}

C++: #include<stdio.h>
#include<stdlib.h>
int main(void){
  char a,b,i,j;
  char rarara[1000];
  char papapa[1000]; 
  fgets(rarara,sizeof(rarara),stdin);
 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 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]);
  }
  printf("\n");
}

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

int main()
{
   char str[21];
   int length;
   int i;
   scanf("%s",str);
   length=strlen(str);
   for(i=length;i>=0;i--)printf("%c",str[i]);

   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>
using namespace std;

int main()
{
	char str[20]={0};

	cin>>str;
	for(int i=19;i>=0;i--){
		if(str[i]!=0) cout<<str[i];
	}
}

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

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

using namespace std;

int main()
{
    string str;
    cin >> str;
    if(str.size() > 20)
        exit(1);
    else
        {
            string strrev(str.rbegin(), str.rend());
            cout << strrev;
        }
}

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

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

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

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

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

	for(int i=0; i<strlen(w); i++){
		q[i] = w[strlen(w)-i-1];
	}
	cout << q << endl;
	cin >> w;
	return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;

main(){
	char str[21];
	cin >> str;
	
	for(int i=strlen(str)-1; i>=0; i--){
		cout << str[i];
	}
	cout<<"\n";
}

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

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

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

using namespace std;

int main(){

  string s;

  cin >> s;
  //abcd
  int len = s.length();
  // len = 4

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

  cout << endl;

}

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

int main(void){

	char s[21];
	int i;

	scanf("%s",s);

	for(i=0; i<strlen(s);i++){

		printf("%c",s[strlen(s)-i]);

	}

	return 0;
}