Go: package main

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

var scanner = bufio.NewScanner(os.Stdin)

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func main() {
	scanner.Split(bufio.ScanWords)

	str := nextString()
	for i := len(str) - 1; i >= 0; i-- {
		fmt.Print(str[i:(i + 1)])
	}
	fmt.Print("\n")
}

C++: #include <iostream>
#include <vector>
#include <cmath>
#include <map>
#include <algorithm>
 
typedef long long ll;
using namespace std;
 
int main()
{
  string buf;
  cin >> buf;
  reverse(buf.begin(),buf.end());
  cout << buf << endl;
}

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

int main(){
	char str[20];
	gets(str);
	for (int i = strlen(str) - 1; i >= 0; i--)
		printf("%c", str[i]);
	printf("\n");
	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 <vector>
#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 <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<(n); i++)
#define FOR(i,x,n) for(int i=x; i<(n); i++)
#define ALL(n) begin(n),end(n)
#define MOD (1000000007)
#define INF (1e9)
#define INFL (1e18)

typedef long long ll;
typedef unsigned int ui;
typedef unsigned long long ull;
template<class T>using arr=vector<vector<T>>;
template<class T>void pr(T x){cout << x << endl;}
template<class T>void prvec(vector<T>& a){rep(i, a.size()-1){cout << a[i] << " ";} cout << a[a.size()-1] << endl;}
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

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

C++: #include <cstdio>
#include <algorithm>
int main( int argc, char *argv[] ) {
	using namespace std;
	char str[20];
	fscanf(stdin, "%s\n", str);
	for (int i=0; i<20; i++) {
		if (str[i] == '\0') {
			int last = i-1;
			for (int j=0; j<i/2; j++) {
				swap(str[j], str[last-j]);
			}
			break;
		}
	}
	printf("%s\n", str);
	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;

int main(void)
{
	string a;
	cin>>a;
	for(int i=0;i<a.size()/2;i++){
		char tmp=a.at(i);
		a.at(i)=a.at(a.size()-i-1);
		a.at(a.size()-i-1)=tmp;
	}
	cout<<a;
}

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

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

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

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

char str[30] ;

int main ( )
{
	while ( scanf ( "%s" , str ) == 1 ) {
		for ( int i = strlen ( str ) - 1 ; i >= 0 ; i-- ) {
			putchar ( str[i] ) ;
		}
		putchar ( '\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<iostream>
#include<algorithm>
#include<iomanip>
using namespace std;

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

    return 0;
}

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

int main(void)
{
	char str[20];
	char str2[20];
	int len;
	int i;
	
	scanf("%s", str);

	len = strlen(str);

	i = 0;

	while (len != 0){
		str2[i] = str[len - 1];
		len--;
		i++;
	}
	 str2[i] = '\0';

	 printf("%s\n", str2);

	 return (0);
}

C++: #include <iostream>

int main(void){
	char *p, s[21];
	int i=0;
	
	std::cin >> s;
	p=s;
	while(*(p++));
	for(p-=2; p>=s; p--)
		std::cout << *p << std::flush;
	std::cout << std::endl;
	return 0;
}

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

C++: #include <bits/stdc++.h>
using namespace std;
int a=1,b;
int main(){
	char str[30];
	while(cin>>str){
		a++;
	    for(b=a;b>=0;b--){
		    cout<<str[b];
		}
    }
}

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

using namespace std;

int main(){
	char str[25];
	int i, num;
	
	cin >> str;

	num = strlen(str);

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

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

int main(){
  string str;

  cin >> str;
  reverse(str.begin(), str.end());
  cout << str << "\n";

  return 0;
}

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

int main()
{
	vector<char> str;
	char c;
	
	while(cin >> c)
	{
		str.push_back(c);
	}

	for(size_t i=0; i<str.size(); ++i)
	{
		cout << str[str.size()-i-1];
	}
	cout << '\n';
}

C++: #include<stdio.h>
#include<string.h>
int main()
{
    int l,i,j,b,k;
    char n[1000];
    while(gets(n))
    {
        l=strlen(n);
        b=-1;
        for(i=0;i<l;i++)
        {
            if(n[i]==' ')

            {
                for(j=i-1;j>b;j--)
                printf("%c",n[j]);
                printf(" ");
                b=i;
            }

        }

        for(i=l-1;i>b;i--)
        printf("%c",n[i]);
        printf("\n");
    }
    return 0;
}

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

int main(){
	std::array<char, 20>str;
	
	for(int i=0; i<20; ++i){
		std::cin >> str[i];
	}
	
	for(int i=str.size(); i>=0; --i){
		std::cout << str[i];
	}
	std::cout << std::endl;
	
	return 0;
}

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

C++: #include <iostream>

using namespace std;

int main(){
    char in[20];
    cin >> in;
    int x = 0;
    for(int i =0;i<20;i++){
        if(in[i]=='\0'){
            x = i;
            break;
        }
    }
    for(int i=0;i<x+1;i++){
        cout << in[x-i];
    }
    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;
}

C++: #include <iostream>
using namespace std;
int main(int argc, const char * argv[]) {
    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 str;
    cin >> str;
    int i = 0,j = str.size() - 1;
    while(i < j){
    	char tmp;
    	tmp = str[i];
    	str[i] = str[j];
    	str[j] = tmp;
    }
    cout << str << endl;
    return 0;
}

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

C++: 
#include "conio.h"
#include "stdio.h"
#include "string.h"
#include "iostream"
using namespace std;
int main(){
int z=0;
char a[255],b[255];
cin.get(a,255);
z=strlen(a)-1;
for(int i=0;i<255;i++)
b[z-i]=a[i];
puts(b);
getch();
return 0;
}

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

int main()
{
	std::string input;
	std::cin >> input;
	for (std::string::const_reverse_iterator i = input.rbegin(); i != input.rend(); ++i) {
		std::cout << *i;
	}
	std::cout << std::endl;

	return 0;
}