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 <cstdio>
#include <cstring>
using namespace std;

int main()
{
        char str1[22],str2[22];
        int l;

        scanf("%s",str1);

        l = strlen(str1);

        for(int i=0;i<l;i++){
                str2[i] = str1[l-i-1];
        }

        printf("%s",str2);

        return 0;
}

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

using namespace std;

int main() {

	int l;
	char t, str[64];

	cin >> str;
	l=strlen(str);

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

	cout << str;

}

C++: #include <bits/stdc++.h>
using namespace std;
#define REP(i,n) for(int i=0; i<(n); i++)
#define REP2(i,x,n) for(int i=x; i<(n); i++) 
#define ALL(n) begin(n),end(n)
struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star;
int main()
{
    string S;
    cin >> S;
    reverse( ALL( S ) );
    cout << S << endl;
    return 0;
}

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

int main(){
	std::string str;

	std::cin >> str;

	std::reverse_copy(str.begin(), str.end(),
		std::ostream_iterator<char>(std::cout,""));
  return 0;
}

C++: #include <stdio.h>
#include <string.h>
int main ()
{
    char x [10000];
    gets (x);
    strrev (x);
    puts(x);
    return 0 ;
}

C++: #include <cstdio>
#include <cstdlib>
#include <cmath>
#include <climits>
#include <cfloat>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <sstream>
#include <complex>
#include <stack>
#include <queue>
using namespace std;
static const double EPS = 1e-5;
typedef long long ll;
#define FOR(i,n) for(i=0;i<n;i++)
#define rep(i,n) for(int i=0;i<n;i++)

int main(){
	string s;
	cin>>s;
	rep(i,s.size()){
		putchar(s[s.size()-i-1]);
	}
puts("");
	return 0;
}

C++: #include <iostream>
#include <stack>
#include <string>
#include <cmath>
#include <algorithm>
#include <iomanip>
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(void){
    int len;
    string a;
    std::cin >> a;
    len =a.length();
    
    for(int i = len - 1; i >=0; i--){
        std::cout << a.at(i);
    }
}

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>
using namespace std;

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

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

using namespace std;

int main(void)
{
	int len;
	char str[20];
	cin >> str;
	
	string str1 = str;
	len = str1.size();
	
	for(int i = len-1; i >= 0; i--){
		cout << str[i];
	}
	cout << endl;
	return 0;
}

C++: #include <iostream>
#include <string>
#include <algorithm>
 
//answer3 function
void display(const char& ch) {
    std::cout << ch;
}
 
int main(){
    std::string str;
    std::cin >> str;
     
    //answer1
    //for(auto it = str.crbegin(); it != str.crend(); ++it){
    //  std::cout << *it;
    //}
     
     
    //answer2
    //std::for_each(str.crbegin(), str.crend(), [](const char& ch){ std::cout << ch; });
     
    //answer3
    std::for_each(str.crbegin(), str.crend(), display);
     
    std::cout << std::endl;
     
    return 0;
}

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

C++: #include <cstdio>
#include <cstring>
using namespace std;
int main() {
  char str[21];
  scanf("%s", str);
  int len = strlen(str);
  for (int i = len-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];
  }
  cout << endl;
}

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

using namespace std;

int main(int argc, char const* argv[])
{
	string str;

	cin >> str;

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

	cout << str << endl;

	return 0;
}

C++: #include<stdio.h>
int main(){
	char str[21];
	int i,j;
	scanf("%s",str);
	
	for(i = 0; str[i] != '\0'; i++){
	}
	
	for(j = i-1; j > -1; j--){
		printf("%c",str[j]);
	}
	
	puts("");
	
	return 0;
}

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

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

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

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(){
	string str;

	cin >> str;

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

C++: #include <stdio.h>
int main(void){
    char s[21],*p;
    scanf("%s",s);
    for(p=s;*p++;);
    for(p--;s<=p;p--)putchar(*p);
    puts("");
    return 0;
}

C++: #include<stdio.h>
#include<stdlib.h>
int main(void){
  char a,b,i,j;
  char str[25];
  char papapa[25];
 
  fgets(str,sizeof(str),stdin);
      for(i=0;str[i]!=NULL;i++){};
  a=i;
  for(i=0;i<a-1;i++)
    papapa[i]=str[a-i-2];
  papapa[a]=NULL;
  printf("%s\n",papapa);
  
  return 0;
}

C++: #include <stdio.h>
int main(void){
    char s[22]={'\n'},*p;
    gets(s+1);
    for(p=s;*p++;);
    for(p--;s<=p;p--)putchar(*p);
    return 0;
}

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

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

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

	return 0;
}

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

char input[20];

int main(){
	cin >> input;

	for(int i=strlen(input); 0 <= i; i--){
		cout << input[i];
	}
	cout << endl;
}

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

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

int main(){
	string str, mod;

	cin >> str;
	int len = str.length();

	for ( int i = len-1; i >= 0; --i ){
		mod += str[ i ];
	}

	cout << mod << endl;

	return 0;
}

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

int main(){
    std::string str;
    while(std::cin >> str){
        for(auto it=str.rbegin(); it!=str.rend(); ++it)
            std::cout << *it ;
    }
}

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

void reverse(string s);

int main(){
	string s;
	int len;
	
	getline(cin, s);
	len = s.length();
	
	for(len--; len >= 0; len--){
		cout << s[len];
	}
	
	cout << endl; 
	
	return 0;
}