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 s;
	cin >> s;

	for(int i = s.length()-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>

using namespace std;

int main()
{
    string a;

    cin >> a;

    int PSa = a.length();

    for (int x = PSa-1; x >= 0; x--){
        cout <<a[x];
    }

    return 0;
}

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

int main(){
	cin.tie(0),ios::sync_with_stdio(false);
	string str; cin>>str;
	for(auto i=str.rbegin();i!=str.rend();++i)cout<<*i;
	cout<<"\n"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 = n - 1; i >= 0; i--){
        printf("%c", str[i]);
    }
    printf("\n");
    
    return 0;
}

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

using namespace std;

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

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

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

 for(int i=0; i<str.size()/2; i++){
  char tmp = str[i];
  str[i] = str[str.size()-(i+1)];
  str[str.size()-(i+1)] = tmp;
 }

 cout << str << '\n';

 return 0;
}

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

}
return 0;
}

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

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

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

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

int main() {
	char str[25];
	for (int i = 0;i < 25;i++) {
		str[i] = '%';
	}
	cin >> str;
	for (int i = 24; i >= 0; i--) {
		if (str[i] == '%') continue;
		cout << str[i];
	}
	cout << endl;
	return 0;
}

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

int main(){
  string str;
  int len; 
while(1){
  cin >> str;
if(str == EOF)break; 
 len = str.length();

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

C++: #include <iostream>
#include<algorithm>
#include<cmath>
#include <string>
#include <vector>
typedef unsigned long long ULL;

 int main (){
	 std::string str;

	 std::cin >> str;

	 for (int i = 0; i < str.size(); ++i) {
		 std::cout << str[str.size() - 1 - i];
	 }
	 std::cout << "" << std::endl;
	 return 0;
}

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

using namespace std;

int main()
{
    char str[20];

    cout<<"input string(20):";
    cin>>str;

    cout<<strlen(str)<<endl;
    for(int i = 0;i<strlen(str);i++)
        cout<<str[strlen(str)-(i+1)];

}

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


int main() {
	
	char c[20];
	int size = 0;

	for (;;) {
		scanf("%c", &c[size]);
		if (c[size] == '\n')break;
		size++;
	}

	for (int i = size; i >= 0; i--) {

		printf("%c", c[i]);
	}

	//printf("\n");

	//system("pause");
	return 0;
}

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

#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 <iostream>
using namespace std;
int main(void)
{
    string s;
    cin >> s;
    int n = s.length();
    string r;
    for (int i = 0; i < n + 1; i++)
    {
        r += s[n - i];
    }
    cout << r << 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;
	return 0;
}

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

int main(void)
{
	std::string str;
	std::cin >> str;
	std::string reverce;

	for (auto s : str)
	{
		reverce = s + reverce;
	}
	std::cout << reverce << std::endl;

	return 0;
}

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

int main(){
   char str[22];
   int l;
while(gets(str))
{
l=strlen(str)-1;
while(l>=0)
{

 cout<<str[l--];
}

    cout<<"\n";
}
    return 0;
}

C++: #include <iostream>
#include <vector>
#include <math.h>
#include <string>

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


int main(){
	std::string str = "";
	//char str[20];
	std::cin >> str;
	std::cout << rev_string(str) << std::endl;

	while (1);
	return 0;
}

//*
std::string rev_string(std::string str){
	int i;
	int len = str.length();
	for (i = 0; i < len / 2; i++) {
		char temp = str[i];
		str[i] = str[len - i - 1];
		str[len - i - 1] = temp;
	}

	return str;
}
//*/

C++: main(a,b){
  for(;scanf("%d%d",&a,&b);puts(&a))
    a=log10(a+b)+49;
}

C++: #include<iostream>

using namespace std;

int main(){

   string str;

   cin>>str;

   reverse(str.begin(),str.end());

   cout<<str<<endl;

   return 0;

}

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

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

int main() {

    string s, ans = "";

    cin >> s;

    for(int i = 0; i < s.size(); i++) {
        ans += s[s.size() - i - 1];
    }

    cout << ans << endl;
     
    return 0;
}

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

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

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

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

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

int main() {
	string line;
	while (getline(cin, line)) {
		cout << string(line.rbegin(), line.rend()) << endl;
	}
	return 0;
}

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

char str[20];
int i,len;
int main(){
	gets(str);
	len = strlen(str);
	for(i=len-1;i>=0;i--){
		printf("%c",str[i]);
	}
	printf("\n");
	retun 0;
}

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

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

    return 0;
}

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

using namespace std;

int main() {
  char s[21];
  scanf("%s", s);
  for (int i=strlen(s)-1;i>=0;i--) putchar(s[i]);
  putchar('\n');
  return 0;
}

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

using namespace std;

int main(){
  char c[25] = {0};
  scanf("%s", c);
  for(int i = 24; i >= 0; i--)
  {
    if(c[i])
      cout << c[i];
  }
  cout << endl;

  return 0;
}