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<bits/stdc++.h>
using namespace std;

int main(){
  char str[21];
  cin >> str;
  for(int i=strlen(str);i>=0;i--){
    printf("%c",str[i]);
  }
  cout << endl;
  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-10;

int main(){
	string str;

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

	return 0;
}

C++: #include <string.h>

#include <iostream>

int main() {
	char str[21];
	std::cin >> str;

	for (int i = strlen(str) - 1; i >= 0; i--)
			std::cout << str[i];
}

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;
}

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

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

C++: #include<iostream>
using namespace std;
int main () {
    string mozi;
    cin >> mozi;
    int y;
    y = mozi.length();
    string reverse;
    for(int i=0;i<y;++i){
        reverse[i]=mozi[y-i-1];
    }
    cout << reverse << endl;
    return 0;
}

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

int main(void)
{
    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>
using namespace std;
int main(){
char a[40];
cin.getline(a,40);
for(int i=40;i>=0;i--){
cout<<a[i];
}
cout<<endl;
return 0;
}

C++: #include <iostream>
#include <vector>
#include <map>
#include <set>
#include <algorithm>
#include <numeric>
#include <cmath>
using namespace std;
typedef vector<int> VI;
#define REP( i, m, n ) for ( int i = (int)( m ); i < (int)( n ); ++i )

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);

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

C++: #include<iostream>
#include<string.h>
using namespace std;
int main()
{
	char a[30];
	while (cin >> a)
	{
		strrev(a);
		cout << a << endl;
	}
}

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 <cstdio>
#include <cstring>
#include <algorithm>
 
using namespace std;
 
int main()
{
    char k[100];
    scanf("%s",k);
    reverse(k,k+strlen(k));
    printf("%s\n",k);
    return 0;
}

C++: #include <iostream>

using namespace std;

int main(void){
	char str[21],i;

	cin >> str;

	for(i=0;str[i];i++);
	for(int j=i-1;j>=0;j--)
		cout << str[j];
	cout << endl;

	return 0;
}

C++: #include <string.h>

#include <iostream>

int main() {
	char str[21];
	std::cin >> str;

	for (int i = strlen(str) - 1; i >= 0; i--)
			std::cout << str[i];
}

C++: #include <iostream>
#include <cmath>
#include <vector>
#include <queue>
#include <utility>
#include <algorithm>
using namespace std;

int main() {
  string s;
  cin >> s;
  int len = s.length();
  string rev = "";
  for (int i = len - 1; i >= 0; i--) {
    rev += s.at(i);
  }
  cout << rev << endl;
}

C++:  #include<stdio.h>

 int main ()
 {
     char str[20],s2[20];

     scanf("%s",str);
     int i,len=0;

     for (i=0;str[i]!='\0';i++)
     {
         len++;
     }

     strrev(str);

     for (i=0;i<len;i++)
     printf ("%c", str[i]);
     printf ("\n");
     return 0;
 }

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

using namespace std;

int main()
{
	char str[21];

	fgets( str, sizeof( str ) - 1, stdin );

	str[ strlen( str ) ] = '\0';
	
	for ( int i = strlen( str ) - 1; 0 <= i; i-- )
	{
		putchar( str[i] );
	}

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

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;
}

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

using namespace std;

string str;

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

}

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

C++: #include<iostream>
#include<cstdio>
#include<string>
#include<stdio.h>
//入力された文字列を逆順に出力
using namespace std;

int main(){
  char a[20];
  scanf("%s",a);
  for(int i =strlen(a)-1;i >=0;i--){
    putchar(a[i]);
  }
  return 0;
}

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

C++: #include <iostream>
#include <algorithm>
#include <cstdio>
#include <cmath>
#include <string>
#include <vector>
#include <set>
#include <stack>
#include <functional>
#define rep(i, n) for(int i = 0; i < n; i++)
#define ll long long
using namespace std;


int main()
{
	cin.tie(0);
	ios::sync_with_stdio(false);
    string s;
    cin >> s;
    rep(i, s.size()) {
        cout << s[s.size() - i - 1];
    }
    cout << "\n";
	return 0;
}

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

C++: 
#include <algorithm>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>

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

}

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

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

int main(int argc, char *argv[]) {
	char rcv[20];
	char out[20];
	fscanf(stdin, "%s", rcv);
	int cnt = 0;
	for (int i = 0; i < 20; i++) {
		if (rcv[i] == '\0') {
			for (int j = i-1; j !=-1; j--) {
				out[cnt] = rcv[j];
				cnt++;
			}
			out[cnt] = '\0';
			break;
		}
	}
	printf("%s", out);
	
	return 0;
}