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.size()-1;i--;){
		cout<<s[i];
	}cout<<endl;
}

C++: #include <iostream>
#include <cstdio>
#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(){
  string word;
  getline(cin,word);
  for(int i=word.size()-1; i>=0; i--){
    cout <<word[i];
  }
  cout <<endl;
  return 0;
}

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

using namespace std;



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

	i = str.size()-1;

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

}

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

long long int gcd(long long int l, long long int r) {
	assert(l > 0 && r > 0);
	if (l > r)return gcd(r, l);
	else {
		const long long int num = r%l;
		if (num) {
			return gcd(l, num);
		}
		else {
			return l;
		}
	}
}
long long int lca(long long int l, long long int r) {
	return l / gcd(l, r)*r;
}
int main() {
	string st; cin >> st;
	reverse(st.begin(), st.end());
	return 0;
}

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

using namespace std;

void swap(char *a, char *b){
  char tmp = *a;
  *a = *b;
  *b = tmp;
}

int main()
{
  char str[32];
  scanf("%s", str);
  int len = strlen(str);
  for(int i=0;i<len/2;i++)
    swap(&str[i], &str[len-i-1]);

  puts(str);
  return 0;
}

C++: #include<bits/stdc++.h>
int main()
{
	int i=21;
	char st[21];
	memset(st,false,sizeof(st));
	scanf("%s",&st);
	for(;i--;){
		if(st[i]){
			if(isalnum(st[i]) || isalpha(st[i])){
				printf("%c",st[i]);
			}	
	}
}}

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

int main(void){
	string str;
	cin >> str;
	for(int i=static_cast<int>(str.size())-1;i>=0;i--)
		cout << str.at(i);
	cout << endl;
}

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

using namespace std;

int main(){
	string A;
	char c;
	cin >> A;

	for (int i = 0; i < A.length()/2; i++){
		c = A[i];
		A[i] = A[A.length() - i - 1];
		A[A.length() - i - 1] = c;
	}
	cout << A;

	return 0;
}

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

int main()
{
	std::string str;
	std::cin >> str;
	std::copy(str.rbegin(), str.rend(),
			std::ostream_iterator<char>(std::cout));
	std::cout << std::endl;
	return 0;
}

C++: #include <iostream>

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

C++: #include <iostream>
#include <algorithm>
#include <stdlib.h>
#include <iomanip>
#include <String>
#include <cmath>
#define PI 3.14159265359
using namespace std;

int main()
{
	char tmpstr[20];
	cin >> tmpstr;
	string str(tmpstr);
	auto itr = str.end() - 1;
	for (; itr > str.begin(); --itr) {
		cout << *itr;
	}
	cout << *itr << endl;
	return 0;
}

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

int main()
{
	std::string name;

	std::cin >> name;

	for(size_t i=name.size(); i--;)
	{
		std::cout << name[i];
	}

	std::cout << '\n';


}

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

C++: #include <iostream>
 
using namespace std;
 
int main() {
    char str[25];
    for (int i=0;i<25;i++) {
    	str[i]='$';
    }
    cin >> str;
    int x;
    for (int i=0;;i++) {
    	if (str[i]=='$') {
    		x=i-1;
    		break;
    	}
    }
    for (int i=0;i<=x;i++) {
    	cout << str[x-i];
    }
    cout << endl;
    return 0;
}

C++: nclude<iostream>
#include<vector>
#include<set>
#include<climits>
#include<cfloat>
#include<cmath>
#include<algorithm>
#include<string>

using namespace std;

int main(void){

  string s;

  cin >> s;

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

  cout << s << endl;

  return 0;
}

C++: //include
//------------------------------------------
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>

using namespace std;

//conversion
//------------------------------------------
inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();}

//math
//-------------------------------------------
template<class T> inline T sqr(T x) {return x*x;}

//typedef
//------------------------------------------
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;
typedef unsigned long long ULL;

//container util
//------------------------------------------
#define ALL(a)  (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define SZ(a) int((a).size())
#define EACH(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())

//repetition
//------------------------------------------
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)

//constant
//--------------------------------------------
const double EPS = 1e-10;
const double PI  = acos(-1.0);

//clear memory
#define CLR(a) memset((a), 0 ,sizeof(a))

//debug
#define dump(x)  cerr << #x << " = " << (x) << endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;

int main() {
  string str;

  cin >> str;

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

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

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

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

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

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

C++: #include<iostream>
using namespace std;
	
int main()
{
	char change[19];
	cout<<"??????????????\????????????????????????\n";
	cin>>change[19];
	int j=strlen(change);
	j-=1;
	for(int i=j;i>=0;i--){
	cout<<"change[i];
	}
	return 0;
}

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

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

C++: #include<stdio.h>
int main(){
    char str[21]={0};
    int cou=0;
    scanf("%s",str);
    for(int i=0;str[i]!='\0';i++){
        cou++;
    }
    for(int i=cou-1;i>=0;i--){
        printf("%c",str[i]);
    }
    printf("\n");
    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;
}