Go: package main
import (
	"fmt"
	"os"
	"bufio"
)

var sc = bufio.NewScanner(os.Stdin)

func main(){
	sc.Scan()
	str := sc.Text()
	// rev_str := make([]string, len(str))
	defer fmt.Println()
	for _, v := range []rune(str){
		defer fmt.Print(string(v))
	}
}

C++: /*文字列 str を入力し、その文字列を逆順に出力するプログラムを作成して下さい。
文字は半角英数字のみで、20 文字以内とします。*/ 
#include<iostream>
using namespace std;
int main(){
    string str;
    cin>>str;
    char ji[str.size()];
    for(int i=0;i<=str.size();i++){
       ji[i]=str[str.size()-i];
    }
    for(int i=0;i<=str.size();i++){
       cout<<ji[i];
    }
    cout<<endl;
}

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

int main(){
	std::string st;
	std::cin >> st;
	
	while(!(st.empty())){
		std::cout << st.back();
		st.pop_back();
	}
	std::cout << std::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];
	}
	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>
#include <algorithm>
using namespace std;
 
int main(){
  string s;
  while (cin>>s){
    reverse(s.begin(),s.end());
    cout<<s<<endl;
  }
}

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

int main(void) {
  char s[50];
  int i;
  scanf("%s", s);
  for(i = strlen(s) - 1; i >= 0; --i) printf("%c", s[i]);
  printf("\n");
  return 0;
}

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

typedef long long ll;
typedef pair<ll, ll> P;

#define pb push_back
#define rep(i, n) for(int i = 0; i < (n); i++)
#define dep(i, a, n) for(int i = a; i >= (n); i--)
#define FOR(i, a, n) for(int i = a; i < (n); i++)
#define mod (ll)(1e9+7)
#define int ll
#define INF 100000000

__attribute__((constructor))
void initial() {
  cin.tie(0);
  ios::sync_with_stdio(false);
}

signed main() {
	string s;
  cin >> s;
  dep(i, s.size() - 1, 0) cout << s[i];
  cout << endl;
	return 0;
}

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

int main(){

	int i=0;
	char c,ca[20];
	
	while(cin>>c){
		ca[i++]=c;
	}
	while(i--){
		cout << ca[i];
	}
	cout << endl;
	return 0;
}

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

int main(){
	char s[21];
	cin >> s;
	int len=strlen(s);

	for(int i=0;i<(len/2);i++){
		char c;
		c = s[i];
		s[i] = s[len-i-1];
		s[len-i-1] = c;
	}
	cout<<s<<"\n";
return 0;
}

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

using namespace std;

int main()
{
	char str[22];
	stack<char> stk;

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

	for ( int i = 0; str[i] != '\n'; i++ )
	{
		stk.push( str[i] );
	}

	while ( !stk.empty() )
	{
		putchar( stk.top() );
		stk.pop();
	}	

	return 0;
}

C++: #include<iostream>
#include<cstring>
using namespace std;
int main(){
  string str;
  int len;

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

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

  }

  cout << endl;

  return 0;



}

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

using namespace std;

int main() {
    int i,len;
    string ch;

    while(cin >> ch){

    len = ch.length();

    for(i = 0;i <= len / 2;i++){
        int box = ch[i];
        ch[i] = ch[len - i];
        ch[len - i] = box;
    }

    for(i = 0; i <= len;i++){
        cout << ch[i];
    }
    cout << endl;

    }

    return 0;
}

C++: #include <stdio.h>
int main(void){
    char s[21],*p;
    while(~scanf("%s",s)){
        for(p=s;*p++;);
        for(p--;s<=p;p--)printf("%c",*p);
        puts("");
    }
    return 0;
}

C++: #include<bits//stdc++.h>
using namespace std;
int main(){
    string s;cin >> s;reverse(s.begin(),s.end());
    cout << s << endl;
}

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

int main(){

  string str,ans;

  cin >> str;

 for(int i=0;i<str.size();i++){
   ans[str.size()-1-i]=str[i];
}

 for(int i=0;i<str.size();i++){
   cout << ans[i];
   }
 cout << endl;

  return 0;
}

C++: #include<stdio.h>



int main(){
	char c[20];

	scanf("%s",&c);
	int i;

	for(i=0;i<20;i++){
		if((int(c[19-i])!=-52)&&(int(c[19-i]!=0))){
			printf("%c",c[19-i]);
		}
	}


	return 0;
}

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

int main(){
    string str;
    cin >> str;
    for(auto it=str.rbegin();it++!=str.rend();)cout << *it;
    return 0;
}

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

int main(){
char x[30];
int i=0;
while(cin>>x[i]){if(x[i]=='\0')break; i++;}
for(int j=i-1;j>-1;j++)cout<<x[i];}

C++: #include <iostream>
#include <string>
using namespace std;
int main(void){
    int len;
    string a;
    std::cin >> a;
    len =a.length();
    if(len <= 20){
        for(int i = len - 1; i >=0; i--){
            if( isupper( a.at(i) )  == 0)
                std::cout << a.at(i);
        }
    }
    
    return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
	vector<char> s;
	char c[256];
	cin >> c;
	for (int i = 0; c[i] != NULL; i++)
	{
		s.push_back(c[i]);
	}
	if (s.size() <= 20){
		for (int i = 1; i < s.size(); i++)
		{
			int a = s.size();
			cout << s[a - i];
		}
	}
	return 0;
}

C++: #include <iostream>
#include <stdlib.h>
#include <string.h>
#include <string>
using namespace std;
void chstrrev(char *p)
{
	int loop=strlen(p)/2;
	char *R=p+strlen(p)-1,ch;
	while(loop--)
	{
		ch=*p;
		*p=*R;
		*R=ch;
		p++;
		R--;
	}
}
int main()
{
	char s[22]={0};
	cin>>s;
	chstrrev(s);
	cout<<s<<endl;
	return 0;
}

C++: #include <iostream>
 
using namespace std;
 
int main() {
    char str[25];
    for (int i=0;i<25;i++) {
    	str[i]='$';
    }
    cin >> str;
    int x;
    for (int i=0;;i++) {
    	if (str[i]=='$') {
    		x=i-1;
    		break;
    	}
    }
    for (int i=0;i<=x;i++) {
    	cout << str[x-i];
    }
    //cout << endl;
    return 0;
}

C++: #include <cstdio>
#include <cmath>
#include <cstring>
#include <cstdlib>
#include <climits>
#include <ctime>
#include <queue>
#include <stack>
#include <algorithm>
#include <list>
#include <vector>
#include <set>
#include <map>
#include <iostream>
#include <deque>
#include <complex>
#include <string>
#include <iomanip>
#include <sstream>
#include <bitset>
#include <valarray>
#include <iterator>
using namespace std;
typedef long long int ll;
typedef unsigned int uint;
typedef unsigned char uchar;
typedef unsigned long long ull;
typedef pair<int, int> pii;
typedef vector<int> vi;

#define REP(i,x) for(int i=0;i<(int)(x);i++)
#define FOR(i,c) for(__typeof((c).begin())i=(c).begin();i!=(c).end();i++)
#define RREP(i,x) for(int i=((int)(x)-1);i>=0;i--)
#define RFOR(i,c) for(__typeof((c).rbegin())i=(c).rbegin();i!=(c).rend();i++)
#define ALL(container) container.begin(), container.end()
#define RALL(container) container.rbegin(), container.rend()
#define SZ(container) ((int)container.size())
#define mp(a,b) make_pair(a, b)
#define UNIQUE(v) v.erase( unique(v.begin(), v.end()), v.end() );

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 (a>b) { a=b; return 1; } return 0; }
template<class T> ostream& operator<<(ostream &os, const vector<T> &t) {
os<<"["; FOR(it,t) {if(it!=t.begin()) os<<","; os<<*it;} os<<"]"; return os;
}
template<class T> ostream& operator<<(ostream &os, const set<T> &t) {
os<<"{"; FOR(it,t) {if(it!=t.begin()) os<<","; os<<*it;} os<<"}"; return os;
}
template<class S, class T> ostream& operator<<(ostream &os, const pair<S,T> &t) { return os<<"("<<t.first<<","<<t.second<<")";}

const int INF = 1<<28;
const double EPS = 1e-8;
const int MOD = 1000000007;


string s

main(){
	while(cin >> s){
reverse(ALL(s));
		cout << s << endl;
	}
	return 0;
}

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

int main()
{
	char Str[21];
	int StrLen;

	cin >> Str;

	StrLen = strlen( Str );

	while( 1 ){

		cout << Str[StrLen-1];

		StrLen--;

		if( StrLen == 0 ) break;
	}

	return 0;
}