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<string>
#include<algorithm>

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

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

int main(){
  string s;
  cin >> s;
  int k;
  for(k=s.size();k>=0;k--){
    printf("%c",s[k]);
  }printf("\n");
  return 0;
}

C++: //============================================================================
// Name        : 0006.cpp
// Author      : 
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
using namespace std;

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

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

using namespace std;

int main()
{
    char s[21];
    cin >> s;
    int l=strlen(s);
    char b[l];
    int a=0;
    for(int i=l-1;i>=0;i--){
        b[a]=s[i];
        a++;
    }
    b[a]='\0';
    cout << b << endl;

    return 0;
}

C++: #include <iostream>
#include<string>
#include<cmath>
#include<algorithm>
#include<cctype>
#include<queue>
#include<stack>
#include<stdio.h>
#include<vector>
#include<set>
#include<map>
#include<iomanip>
#define rep(i,n) for(int i=0;i<n;i++)
typedef int long long ll;

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(void)
{
	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() {
	char str[21];
	cin >> str;
	int length = strlen(str);
	int x;
	for (int i = 0; i < length; i++){
		x = length - i - 1;
		cout <<str[x];
	}
	cout << "\n";

	return 0;
}

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

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

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

using namespace std;

void sort(char *str){
	int len, len3 = 0;
	char str2[20], work; 
	len = strlen(str);

	for(int len2 = 0; len > len2; len2++){
		str2[len2] = str[len2];
	}

	for(len = len - 1; len >= len3; len--,len3++){
		work = str[len];
		str[len] = str[len3];
		str[len3] = work;
	}
}

int main(){
	char str[20];
	while (cin >> str) {
		sort(str);
		cout << str << endl;
	}
	return 0;
}

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

int main(void) {
    std::string s;
    std::string t = "";
    std::cin >> s;
    for (int i = s.length() - 1; i >= 0; i--) {
        t += s[i];
    }
    std::cout << t << std::endl;
    return 0;
}

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

int main(){
	int i;
	char s[21];

	scanf("%s",s);
	for(i=0;s[i]!='\0';i++);
	if(i>0) i--;
	for(;i>=0;i--) std::cout<<s[i];
	std::cout<<std::endl;
	system("pause");
	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 = "";
	std::cin >> str;
	std::cout << rev_string(str);

	//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++: #include <iostream>
#include <string>
#include <algorithm>

using namespace std;

int main() {

  string str;

  while(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 = str.length()-1; i >= 0; i--) cout << str[i];
	cout << endl;
	return 0;
}

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

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

C++: main(a[20],i){for(i=0;~scanf("%c",&a[i]);i++);while(i--)printf("%c",a[i]);}

C++: #include <iostream>
#include <cstring>
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>
#include <vector>
using namespace std;

string ilham, bojos;
int ndaru;
int main(){
	cin >> ilham;
	ndaru = ilham.length();
	for(int i = ndaru-1; i >= 0; i-){
		bojos = bojos + ilham[i];
	}
	cout << bojos << "\n";
	
	return 0;
}

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

int main()
{
	char get[20] ;
	cin >> get ;

	int i = 0 ;
	char output[20] ;
	while( (strlen(get)-i) > 0 )
	{
		output[i] = get[strlen(get)-i-1] ;
		i ++ ;
	}

	output[strlen(get)] = '\0' ;
	cout << output ;

	return 0 ;
}

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

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

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 ) );
		cout << str << endl;
	}

	return 0;
}

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

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

int main()
{
	char str[21];
	int i;
	cin >> str;
	i = strlen(str);
	for (i -= 1; 0 <= i; i--) {
		cout << str[i];
	}
	return 0;
}

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

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

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

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

int main(){
	const int max = 20; 
	char str[max + 1];
	char c;
	int count = 0;
	while(cin.get(c)){
		str[count] = c;
		count++;
	}
	for(int i = 1; i <= count-1; i++)
		cout << str[count - i - 1];
	cout << endl;
	return 0;
}

C++: #include<iostream>
#include<math.h>
#include<algorithm>
#include<string.h>
using namespace std;
int main(){
    string x;
    int i;
    cin>>x;
    for(i=x.size();i--;){
        cout<<x[i];
    }
    cout<<endl;
    return 0;
}