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 <string>
using namespace std;
int main()
{
	string a;
	
	cin >> a;
	
	for(int i = a.length()-1;i>=0;i--)
	{
		cout << a[i];
	}
}

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

C++: #include<bits/stdc++.h>
#include<vector>
#include<list>
#include<stack>
#include<queue>
#include<algorithm>
using namespace std;


int main(){
    char c[20];
    scanf("%s",&c);
    string s=c;
    reverse(s.begin(),s.end());
    printf("%s\n",s.c_str());
    return 0;
}

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

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

C++: #include<stdio.h>

int main(){
  char string[22];
  char revString[22];
  int i,s;

  fgets(string,20,stdin);
  for(i = 21;string[i] != '\n';i--){
    if(i == 0){
      break;
    }
  }
  i--;
  for(s = 0;i >= 0;i--){
    revString[s] = string[i];
    s++;
  }
  revString[s] = '\0';

  printf("%s",revString);

  return 0;
}

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

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

C++: #include<bits/stdc++.h>
#define rep(i,n) for(int i=0; i<n; i++)
using namespace std;
int main(){
  string s;
  cin >> s;
  for(int i=s.size(); i>-1; i--){
    cout << s[i];
  }
  cout << endl;
  return 0;
}

C++: t = input()
s=t[::-1]
print (s)

C++: //
//  main.cpp
//  CppTest
//
//  Created by Ryu on 2017/02/08.
//  Copyright ?? 2017??´ Ryu. All rights reserved.
//

#include <iostream>
#include <algorithm>
#include <cstdio>
#include <cmath>
using namespace std;

int main(int argc, const char * argv[]) {
    // insert code here...
    cin.tie(0);
    ios::sync_with_stdio(false);
    
    char x;
    char str[20];
    int n = 0;
    while (cin.get(x)) {
        str[n] = x;
        //printf("%c", str[n]);
        n++;
    }
    
    
    for(int i = 0; i < n; i++){
        printf("%c", str[n - i - 1]);
    }
    
    
    return 0;
}

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

int main(){
	std::string str;
	std::cin >> str;
	
	for(auto it = str.rbegin(); it != str.rend(); ++it){
		std::cout << *it;
	}
	std::cout << std::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;
}

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

int main()
{
    char str[21];
    int l=0;
    cin>>str;
    for(int i=0;str[i]!='\0';)
        i++;
    for(int k=i-l;k>=0;k--,l++)
    {
        cout<<str[k];
    }
    cout<<endl;
    return 0;
}

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

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

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

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

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

using namespace std;

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

	for(int ix = str.size()-1;ix>=0;--ix)
		cout<<str[ix]<<flush;
	cout <<endl;

	return 0;
}

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

using namespace std;

int main()
{
string str;

while(cin >> str)
{
for(string::reverse_iterator rit = str.rbegin(); rit != str.rend(); ++rit)
cout << *rit;

cout << endl;
}

return 0;
}

C++: /*http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0006&lang=jp*/

#include <iostream>

using namespace std;

int main(){
    string str;
    cin>>str;
    string::reverse_iterator rt=str.rbegin();
    while(rt!=str.rend()){
        cout<<*rt++;
    }
    cout<<endl;
    return 0;
}

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

C++: //#define _USE_MATH_DEFINES
#include <iostream>
//#include <stdio.h>
//#include <iomanip>
#include <vector>
#include <string>
//#include <algorithm>
//#include <functional>
//#include <cmath>

using namespace std;


int main(){

	string str1,str2;
	
	cin >> str1;

	for (int i = str1.length()-1; i >= 0; i--){
		str2.push_back(str1[i]);
	}


	cout << str2 << endl;


	return 0;
}

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

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

  for(int i=1; i<=S.length(); i++){
    cout << S[S.length()-i];
  }
  cout << endl;
}

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

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

using namespace std;
// cin >>
// cin <<
int main(){
	string a;
	int output;
	getline(cin,a);
	for(int i=(int)a.size();i>=0;i--){
		cout <<a[i];
	}
	cout <<endl;
	return 0;
}

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

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

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

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

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

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

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

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

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

C++: #define _CRT_SECURE_NO_WARNINGS
#define M_PI 3.14159265358979
#include <iostream>
#include <stdio.h>
#include <string>
#include <math.h>
#include<iomanip>
#include<vector>
#include<cmath>
#include <algorithm>

using namespace std;


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

	for (int i = str.length()-1; i >-1; i--){
		reverse += str[i];
	}
	cout << reverse << endl;


	return 0;
}

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

int main(){

	string str;
	
	cin >> str;
	
	std::istringstream stream(str);
	for(int i=str.length()-1; i>=0; i--){
		stream >> str[i];
	}

	cout << str << endl;

	return 0;
}