Go: package main

import (
	"bufio"
	"fmt"
	"os"
)

var sc = bufio.NewScanner(os.Stdin)

func main() {
	sc.Scan()
	s := sc.Text()
	l := len(s)
	r := make([]rune, l)
	for i, c := range s {
		r[l-i-1] = c
	}
	fmt.Println(string(r))
}

C++: // includes
#include <cstdio>
#include <cstdint>
#include <iostream>
#include <iomanip>
#include <string>
#include <queue>
#include <stack>
#include <vector>
#include <set>
#include <map>
#include <unordered_map>
#include <algorithm>
#include <utility>
#include <functional>
#include <cmath>
#include <climits>
#include <bitset>

// macros
#define ll long long int
#define pb push_back
#define mk make_pair
#define pq priority_queue
#define FOR(i, a, b) for(int i=(a); i<(b);++i)
#define rep(i, n) FOR(i, 0, n)

using namespace std;

//  types
typedef pair<int, int> P;
typedef pair<ll, int> Pl;
typedef pair<ll, ll> Pll;
 
// constants
const int inf = 1e9;
const ll linf = 1LL << 50;
const double EPS = 1e-10;

// solve

int main(int argc, char const* argv[])
{
  string s;
  cin >> s;
  reverse(s.begin(), s.end());
  cout << s << endl;
	return 0;
}

C++: #include <iostream>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <algorithm>
#include <functional>

using namespace std;

int gcd( int, int );

int main()
{
	char str[21];

	while ( fgets( str, sizeof( str ), stdin ) )
	{
		reverse( str, str + strlen( str ) - 1 );
		cout << str;
	}

	return 0;
}

C++: #include<stdio.h>
int main(void)
{
	int i;
	char str[20];
	scanf("%s",str);
		for(i=9;i>=0;i--){
			printf("%c",str[i]);
		}
	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.at(i);
	}
	cout << endl;

	return 0;
}

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

using namespace std;

int main(void) {
        char input;
        vector<char> str(5);

        while((input = getchar()) != '\n') {
                str.insert(str.begin(), input);
        }

        for (char output : str) {
                putchar(output);
        }
        puts("");

        return 0;
}

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<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-1];
  return 0;
}

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

using namespace std;

int main()
{
    string a;

    cin >> a;

    int PSa = a.length();

    for (PSa; 0<=PSa; PSa--){
        cout <<a[PSa];
    }

    return 0;
}

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

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

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

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

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

C++: #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <algorithm>
#include <cstring>
using namespace std;
 
int main() {
    char a[25], i;
    scanf("%s", &a);
    for(i=strlen(a)-1;i>=0;i--){
       printf("%c", a[i]);                         
                             
    }
    printf("\n");
    
    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>
#include<cstring>
using namespace std;

int main(){
  string str;
  int len;


  while( cin >> str ){
  len = str.length();

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

  

  }
return 0;
}

C++: ///
// File:  0006.cpp
// Author: ymiyamoto
//
// Created on Wed Nov  8 22:09:01 2017
//

#include <cstdint>
#include <iostream>
#include <string>

using namespace std;

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

  cout << endl;

  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<stdio.h>
#include<string.h>
int main(void)
{
	char str[20];
	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>
using namespace std;

int main()
{
	string before, after = "";

	cin >> before;
	for(int i=0;i<before.size();i++) 
		after += before[before.size()-(i+1)];

	cout << after << endl;

	return 0;
}

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

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

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

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

int main() {
	std::string str;

	std::cin >> str;
	std::reverse(str.begin(), str.end());
	std::cout << str;

	return 0;
}

C++: #include <stdio.h>
#include <string.h>
 
int main()
{
    char str[21];
    int i, leng;
 
    scanf("%s", str);
    leng=strlen(str);
    for( i=leng-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;
  return 0;
}

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

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

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

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

using namespace std;

int main()
{
	char C[20];

	cin >> C;

	for (int i = strlen(C) - 1; i >= 0; i--)
	{
		cout << C[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<iostream>
#include<string>
using namespace std;

int main()
{
	string a;
	cin>>a;
	for(int i=0;i<a.length()/2;i++){
		char tmp=a[i];
		a[i]=a[a.length()-i-1];
		a[a.length()-i-1]=tmp;
	}
	cout<<a;
	return 0;
}

C++: #include<iostream>
#include <vector>
#include <algorithm>
#include <string>
using namespace std;
#include <sstream>
typedef long long ll;
int main(){
string s;
	cin>>s;
	for (int i = s.length()-1; i >= 0; --i) {
		cout<<s[i];
	}
	cout<<endl;
}