Go: package main

import (
        "fmt"
)

func main () {
        var str string
        fmt.Scanf("%s", &str)
        show(len(str)-1, str)
}

func show(n int, str string) {
        if n == 0 {
                fmt.Printf("%s\n", string(str[n]))
        } else {
                fmt.Printf("%s", string(str[n]))
                show(n-1, str)
        }
}

C++: #include <iostream>
#include <stdlib.h>
#include <string.h>
#include <string>
using namespace std;
int main()
{
	string s;
	cin>>s;
	cout<<strrev((char*)s.c_str())<<endl;
	return 0;
}

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

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

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

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

int main(void) {
  char s[100] = {0};
  int i = 0;
  scanf("%s", s);
  i = sizeof(s)-1;
  while(i >= 0)
  putchar(s[i--]);
  
  putchar('?\n');
  return 0;
}

C++: #include <stdio.h>

int main(void){
	char str[21] = {0};
	char temp;
	int x = 1;
	int i = 0;
	
	scanf("%s", str);
	while(str[x]){
		x++;
	}
	while(x - i > i){
		temp = str[i];
		str[i] = str[x-1 - i];
		str[x-1 - i] = temp;
		
		i++;
	}



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

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

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

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

using namespace std;

string sort(string str){
	int len, len2 = 0;
	char work; 

	len = str.length();

	// 両端から交換
	for(len = len - 1; len > len2; len--, len2++){
		work =  str[len];
		str[len] = str[len2];
		str[len2] = work;
	}
	return str;
}

int main(){
	string str;
	cin >> str;
	str = sort(str);
	cout << str << endl;
	return 0;
}

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

int main(void){
	char buff[128];
	char *p;
	scanf("%s",buff);
	p=buff;
	p=p+strlen(buff);
	while(p!=buff){
		putchar(*(--p));
	}
	putchar('\n');
	return 0;
}

C++: #include <iostream>
#include <string>
#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;
	for(int i = str.size(); i >= 0; i--){
		cout << str[i];
	}
	cout << endl;
}

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

using namespace std;

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

C++: #include <iostream>
#include <queue>
#include <vector>
#include <math.h>
#include <algorithm>
#include <iomanip>
#include <string>
using namespace std;

int main(){
	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() {
	char str[21];
	cin >> str;
	int length = strlen(str);
	int x;
	for (int i = 0; i < length; i++){
		x = length - i - 1;
		cout <<str[x];
	}
	cout << "\n";

	return 0;
}

C++: #include <iostream>
#include <string>
using namespace std;
int main(void){
    // Your code here!
    string s;
    cin >> s;
    
    for(int i=s.length() - 1; i>=0; i--){
        cout << s[i];
    }
    cout << "\n";
}

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

int main()
{
	char Str[21];
	int StrLen;

	cin >> Str;

	StrLen = strlen( Str );

	while( 1 ){

		cout << Str[StrLen-1] << endl;

		StrLen--;

		if( StrLen == 0 ) break;
	}

	return 0;
}

C++: #include <cstdio>
#include <algorithm>
int main( int argc, char *argv[] ) {
	using namespace std;
	char str[20];
	fscanf(stdin, "%s", str);
	reverse(str, str+sizeof(str)/sizeof(char));
	printf("%s\n", str);
	return 0;
}

C++: #include<stdio.h>
#include <string.h>
int main()
{

char str[21]={};
char ch;
int n;
scanf("%s",str);
n = strlen(str);
for(int i=0;i<n;i++)
{
printf("%c",str[n-1]);
}
printf("\n");
return 0;
}

C++: #include<iostream>
#include<stdio.h>
int main(){
	
	int i;
	char s[21];
	

	scanf("%s",s);
		
	for(i=0;s[i]!='\0';i++);
	if(i>0) i--;
	for(;i>=0;i--) std::cout<<s[i];

	std::cout<<std::endl;
		





	
	
	
	
	

	return 0;
}

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

//østrðtÉµÄstrÉãü·éÖ
void reverseString(char *str){
	char *hoge;
	int length;

	hoge = (char *)malloc( sizeof(char) * strlen(str) );
	
	length = strlen(str);
	for(int i=0 ; i<length ; i++){
		hoge[length-i-1] = str[i];
	}
	for(int i=0 ; i<length ; i++){
		str[i] = hoge[i];
	}
	free(hoge);
} 
 
int main(){
	char str[80];

	while (scanf("%s", str) != EOF) {
		reverseString(str);
		printf("%s\n", str);
	}

	return 0;
}

C++: #include<cstdio>
#include<ctype.h>
#include<iostream>
#include <algorithm>
using namespace std;

int main(){
    int cut=1;
    char str[21]={0};
    for(int i=0;i<20;i++){
        scanf("%c",&str[i]);
        if(str[i]=='\n')break;
        if(str[i]==' '){
            str[i]='\0';
            i-=1;
            }
        cut++;
    }
    for(int j=cut;j>-1;--j){
        printf("%c",str[j]);
    }
        cout <<""<<endl;
    return 0;
}

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

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

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>=0;--i){
		cout<<c[i];
	}
	return 0;
}

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

int main(){
  std::string str;
  int num;
  
  std::cin >> str;
  num = str.length();
  
  for(int i=num-1; i>=0; i--){
    std::cout << str[i];
  }
  std::cout << std::endl;

  return 0;
}

C++: 

 #include<iostream>
#include<string>
#include<algorithm>
#include<vector>

using namespace std;

//Nayeem Shahriar Joy ,Applied Physics And Electronic Engineering , University of Rajshahi.

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(){
	int num,i;
	string str,tmp;
	cin >> str;
	num = str.length();
	tmp = str;
	for(i = 0; i < num ; i++)
		str[i] = tmp[num-i-1];
	cout << str << endl;
}

C++: #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

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

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

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

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

int main(void){

    std::string str;
    std::getline(std::cin,str);
    str.reverse(str.begin(),str.end());
    std::cout<<str<<std::endl;
    return 0;
}

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

int main(){
	char str[25];
	
	for(int i = 0; i < 25; i++) str[i] = 0;
	
	scanf("%s", str);
	
	int p = 25;
	while(str[--p] == 0);
	while(p >= 0){
		printf("%c", str[p--]);
	}
	
	return 0;
}