Go: package main

import "fmt"

func main() {
	var str string
	var result string

	fmt.Scanf("%s", &str)

	for i := len(str) - 1; i >= 0; i-- {
		result += string(str[i])
	}

	fmt.Println(result)
}

C++: #include <iostream>

int main(void){
	char *p, s[21];
	int i=0;
	
	std::cin >> s;
	p=s;
	while(*(p++));
	for(p-=2; p>=s; p--)
		std::cout << *p << std::flush;
	std::cout << std::endl;
	return 0;
}

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

C++: #include <bits/stdc++.h>
using namespace std;
int a=1,b;
int main(){
	char str[30];
	while(cin>>str){
		a++;
	    for(b=a;b>=0;b--){
		    cout<<str[b];
		}
    }
}

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

using namespace std;

int main(){
	char str[25];
	int i, num;
	
	cin >> str;

	num = strlen(str);

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

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

int main(){
  string str;

  cin >> str;
  reverse(str.begin(), str.end());
  cout << str << "\n";

  return 0;
}

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

int main()
{
	vector<char> str;
	char c;
	
	while(cin >> c)
	{
		str.push_back(c);
	}

	for(size_t i=0; i<str.size(); ++i)
	{
		cout << str[str.size()-i-1];
	}
	cout << '\n';
}

C++: #include<stdio.h>
#include<string.h>
int main()
{
    int l,i,j,b,k;
    char n[1000];
    while(gets(n))
    {
        l=strlen(n);
        b=-1;
        for(i=0;i<l;i++)
        {
            if(n[i]==' ')

            {
                for(j=i-1;j>b;j--)
                printf("%c",n[j]);
                printf(" ");
                b=i;
            }

        }

        for(i=l-1;i>b;i--)
        printf("%c",n[i]);
        printf("\n");
    }
    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(); i>=0; --i){
		std::cout << str[i];
	}
	std::cout << std::endl;
	
	return 0;
}

C++: include<iostream>
#include<string>
using namespace std;
int main()
{
  char s[21];
  cin >> s;
  int len = strlen(s);
  for(int i = len;i >= 0;i--){
    cout << s[i];
  }
  cout << endl;
}

C++: #include <iostream>

using namespace std;

int main(){
    char in[20];
    cin >> in;
    int x = 0;
    for(int i =0;i<20;i++){
        if(in[i]=='\0'){
            x = i;
            break;
        }
    }
    for(int i=0;i<x+1;i++){
        cout << in[x-i];
    }
    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-1];
	}
	cout <<endl;
	return 0;
}

C++: #include <iostream>
using namespace std;
int main(int argc, const char * argv[]) {
    string str;
    cin>>str;
    for (int i = str.length()-1; i>=0; i--) {
        cout<<str[i];
    }
    cout<<endl;
    return 0;
}

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

using namespace std;

int main(){
    string str;
    cin >> str;
    int i = 0,j = str.size() - 1;
    while(i < j){
    	char tmp;
    	tmp = str[i];
    	str[i] = str[j];
    	str[j] = tmp;
    }
    cout << str << 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;
    return 0;
}

C++: 
#include "conio.h"
#include "stdio.h"
#include "string.h"
#include "iostream"
using namespace std;
int main(){
int z=0;
char a[255],b[255];
cin.get(a,255);
z=strlen(a)-1;
for(int i=0;i<255;i++)
b[z-i]=a[i];
puts(b);
getch();
return 0;
}

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

int main()
{
	std::string input;
	std::cin >> input;
	for (std::string::const_reverse_iterator i = input.rbegin(); i != input.rend(); ++i) {
		std::cout << *i;
	}
	std::cout << std::endl;

	return 0;
}

C++: #include<iostream>
using namespace std;
#include<stdio.h>
int main()
{
    char str[21];
    int i,j;
    gets(str);
    for(i=0;;i++)
    {
        if(str[i]=='\0')
        break;
    }

    for(int j=i-1;j>=0;j--)
    {
        printf("%c", str[j]);
    }
    return 0;
}

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

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

using namespace std;

int main() {

	char str[20];
	int i, len=0;

	cin >> str;

	while (str[len]) 
		len++;

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

	putchar('\n');

	return 0;

}

C++: #include <bits/stdc++.h>
using namespace std;
#define ALL(v) (v).begin(), (v).end()


int main() {
    string s;
    cin >> s;
    reverse(ALL(s));
    cout << s << endl;
    return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cassert>
#include <vector>
#include <string>
#include <cmath>
#include <map> 
#include <sstream>
#include <cstdio>
#include <complex>
#include <cstring>
using namespace std;
 
const int MAX= 10000100;

#define loop(i,a,b) for(int i = a ; i < b ; i ++)
#define rep(i,a) loop(i,0,a)
#define all(a) (a).begin(),(a).end()
#define ll long long int
#define gcd(a,b) __gcd(a,b)
#define pb(a) push_back(a)
int GCD(int a, int b) {if(!b) return a; return gcd(b, a%b);}
int lcm(int a, int b) {return a*b / gcd(a, b);}

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

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

int main(){
  string str;
  int len;
  cin >> str;
  len = str.length();

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

  return 0;

}

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

#define MAX 256

int main(void){

	char str[21];
	int c = 0;
	scanf("%s", str);
	for (int i = 0; str[i] != '\0'; i++){
		c++;
	}
	for (int i = c; i >= 0; i--){
		printf("%c", str[i]);
	}
	printf("\n");
	
	return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
	string str;
	while(cin>>str){
		for(int i=str.length()-1;i>=0;i--)
			cout<<str[i];
		puts("");
	}
}

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

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

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

using namespace std;

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

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

using namespace std;

void reverse(char[]);

int main() {

	char str[21];
	cin >> str;
	reverse(str);
}

void reverse(char s[]) {
	int i, l=strlen(s);
	char t;

	for(i=0; i<l/2; i++) {
		t=s[i];
		s[i]=s[l-i-1];
		s[l-i-1]=t;
	}

	cout << s;

}

C++: 
/* vo00_06.cpp */
#include <iostream>
#include <string>
using namespace std;

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

	for (int i = str.size(); i--;)
		cout << str[i];
	cout << '\n';

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

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

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

	int i = 0 ;
	char output[20] ;
	while( (strlen(get)-i) > 0 )
	{
		output[i] = get[strlen(get)-i-1] ;
		i ++ ;
	}

	cout << output ;

	return 0 ;
}