Go: package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		str := []rune(scanner.Text())
		for i:=len(str)-1; i>=0; i-- {
			fmt.Printf(string(str[i]))
		}
		fmt.Println()
	}
}

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

using namespace std;

int main(){

	string A;
	char R;
	cin >> A;

	for(int i = 0; i < A.length()/2 ;++i){
		R = A[i];
		A[i] = A[A.length() - i - 1];
		A[A.length() - i - 1] = R;
	}
	cout << A << '\n';

	return 0;

}

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

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

int main(){

  string s;

  cin >> s;

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

  //abcd
  //int len = s.length();
  // len = 4

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

  cout << s << endl;

}

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

C++: #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cctype>
#include <cstring>
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <list>
#include <stack>
#include <queue>
#include <algorithm>
#include <complex>
#include <iterator>
using namespace std;

typedef pair<int, int> pii;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<string> vs;

#define all(c) (c).begin(), (c).end()
#define rall(c) (c).rbegin(), (c).rend()
#define tr(c, i) for(auto i = (c).begin(); i != (c).end(); i++)
#define rtr(c, i) for(auto i = (c).rbegin(); i != (c).rend(); i++)
#define repfn(i, a, cont, next) \
  for(auto i = (a); [=](){return(cont);}(); i = [=](){return(next);}())
#define repby(i, a, b, step) repfn(i, a, i < b, i + step)
#define repab(i, a, b) repby(i, (a), (b), 1)
#define rep(i, n) repab(i, 0, (n))
#define pb push_back
#define sz(c) int((c).size())

int main(int argc, char **argv)
{
  string s;
  while (cin >> s) {
    reverse(all(s));
    cout << s << endl;
  }
  return 0;
}

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

using namespace std;

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

C++: #include <bits/stdc++.h>

using namespace std;

int main()
{
    char name[25];
    gets(name);
    int len = strlen(name);

    for(int i= len-1; i>=0; i--)
        cout << name[i] ;
    cout << endl;
    return 0;
}

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

int main(){
  std::string s;
  std::cin>>s;
  std::reverse(s.begin(),s.end());
  std::cout<<s<<std::endl;
  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 <stdio.h>

int main(){
	
	char a[25],b[25]={'0'};
	int s,t;
	
	scanf("%s",&a);
	
	for(s=0;a[s]!='\0';s++)
	
	for(t=0;a[t]!='\0';t++){
		
		b[s-t]=a[t];
		
	}
	
	printf("%s",b);
	
	return 0;
}

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

int main()
{
	char s[21];
	cin.getline(s, 21, '\n');
	int l = strlen(s);
	for (int i = l - 1; i >= 0; i--)
		cout << s[i];
	cout << endl;
	return 0;
}

C++: #define _USE_MATH_DEFINES
#include <iostream>
#include <vector>
#include <string>
#include <cstring>
#include <algorithm>
#include <sstream>
#include <map>
#include <set>
#include <cstdio>
using namespace std;

#define REP(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)

typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
/* ここからが本編 */
/* */
/* 入力開始！ */
/* 入力終了！ */
int main(void)
{
   int i,j,k,l;
   int n;
   char s[25];
   cin >> s;
   for(i=strlen(s)-1;i>-1;i--) {
      cout << s[i];
   }
   cout << endl;

   return 0;
}

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

int main(){
	char str1[21] = "", str2[21] = "";
	cin >> str1;
	int a = 0;
	for(int i = 0;i < 21;i++){
		if(str1[20 - i] != '\0'){
			str2[a] = str1[20 - i];
			a++;
		}
	}
	cout << str2;
    return 0;
}

C++: #include<iostream>
using namespace std;
int main()
{
    int i,j;
    char str[20];
    cin>>str;

    for(i=0;;i++)
    {
        if(str[i]=='\0')
        break;
    }

    for(j=i-1;j>=0;j--)
    {

       cout<<str[j];
    }
    return 0;
}

C++: #include <bits/stdc++.h>

using namespace std;

#define Vi vector<int>
#define FOR(i,s,e) for (int i=s; i<e; i++)
#define ITER(v) v.begin(), v.end()

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

    string str;

    cin >> str;
    reverse(ITER(str));
    cout << str << endl;

    return 0;
}

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

#define ALL(a) a.begin(),a.end()

using namespace std;

int main()
{
  string s;
  cin >> s;
  reverse(ALL(s));
  cout << s << endl;;

  return 0;
}

C++: #include<iostream>
#include<string>
#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(); i >= 0; i--){
		cout << str[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>
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 <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 ) - 2; 0 <= i; i-- )
	{
		putchar( 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>
#include<string>
using namespace std;


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

C++: #include <iostream>
#include <string>
#include <algorithm>
#define REP(i,n) for(int i=0;i<n;i++)
using namespace std;

int main() {
    string s;
    cin >> s;
    reverse(s.begin(),s.end());
    cout << s << '\n';    
}

C++: //http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0006
#include <iostream>
#include <string>
using namespace std;
int main() {
	cin.tie(0); ios::sync_with_stdio(false);
	string str; cin >> str;
	for (auto it = str.rbegin(); it != str.rend(); it++) {
		cout << *it;
	}
	cout << endl;
}

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

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

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

int main() {
	string s;
	cin >> s;
	cout << string(s.rbegin(),s.rend()) << endl;
	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;
}

C++: #include <iostream>
#include <algorithm>
#include <stdlib.h>
#include <iomanip>
#include <string>
#include <cmath>
#define PI 3.14159265359
using namespace std;

int main()
{
	char tmpstr[20] = { NULL };

	cin >> tmpstr;
	int len = 0;
	while (tmpstr[len] != NULL) {
		++len;
	}

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

	return 0;
}