Go: package main

import (
	"fmt"
)

func main() {
	var str string
	rts := []string{}

	fmt.Scan(&str)
	for _, r := range str {
		rts = append([]string{string(r)}, rts...)
	}

	for _, v := range rts {
		fmt.Print(v)
	}
	fmt.Println()
}

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

int main()
{
	unsigned long long iNumA, iNumB, iGCD, iLCM, iGCDTemp, iGCDTempL, iLCMTempA[512], iLCMTempB[512], iCount, i, j, k;
	bool      TrueFlag;

	while( cin >> iNumA >> iNumB ){

		iGCDTempL = 0;
		iGCDTemp  = iNumB;

		while( iGCDTemp != 0 ){

			iGCDTempL = iGCDTemp;
			iGCDTemp  = iNumA % iGCDTemp;

		}

		iGCD     = iGCDTempL;
		iCount   = 1;
		i	     = 1;
		TrueFlag = false;

		while( 1 ){

			for( j = 1; j <= 512; j++ ){

				iLCMTempA[j-1] = iNumA * j;
				iLCMTempB[j-1] = iNumB * j;

			}

			for( j = 0; j < 512; j++ ){

				for( k = j; k < 512; k++ ){

					if( iLCMTempA[j] == iLCMTempB[k] ){

						iLCM     = iLCMTempA[j];
						TrueFlag = true;
						break;

					}

				}

				if( TrueFlag == true ) break;

			}

			if( TrueFlag == true ) break;

		}

		cout << iGCD << ' ' << iLCM << endl;

	}

	return 0;
}*/

/*#include <iostream>
#include <string>
#include <cstdlib>
#include <ctime>
//??¢????????¨??????????????????????????????????????¨??????????????¢?????????
#include <conio.h>
using namespace std;

int main()
{
	int iCnt=0,iWin=0,iLose=0,iEnemyOrder=0,iMinePoint=0,iEnemyPoint=0;
	string sMineOrder,sStartEnd,sRecord;

	while( 1 ){
		iCnt = 0;
		iMinePoint = 0;
		iEnemyPoint = 0;
		cout << "| ??????????????????????????§???" << endl << "| ????§?????????´?????????START????????????????????´?????????END?????¨??\?????????????????????" << endl << "| ??\????????¨????°????????????§????????§?????£???????????????" << endl;
		cout << "|    ...";
		cin >> sStartEnd;

		if( sStartEnd == "START" || sStartEnd == "start" ){
			srand((unsigned int)time(NULL));
			cout << "|" << endl << "| ???????????????????????????????§?????????????" << endl << "| 5????????????????????§????????§??????G(??°???),C(?????§???),P(??????)?????\???????????????????????????" << endl;
			cout << "| ???????????????????????£?????±???...";
			while( 1 ){

				if( iMinePoint == 5 || iEnemyPoint == 5 ){ break; }

				if( iCnt > 0 ){ cout << "| ---" << iCnt+1 << "????????§???????????£?????±???..."; }
				cin >> sMineOrder;
				iEnemyOrder = rand()%3;

				if( sMineOrder == "G" || sMineOrder == "g" ){
					if( iEnemyOrder == 1 ){
						cout << "| ---???????????°?????????????????????" << endl;
						cout << "| ---???????????§???" << endl << "|" << endl;
						iCnt++;
					}
					else if( iEnemyOrder == 2 ){
						cout << "| ---??????????????§?????????????????????" << endl;
						cout << "| ---????????§???" << endl << "|" << endl;
						iMinePoint++;
						iCnt++;
					}
					else{
						cout << "| ---?????????????????????????????????" << endl;
						cout << "| ---????????§???" << endl << "|" << endl;
						iEnemyPoint++;
						iCnt++;
					}
				}
				else if( sMineOrder == "C" || sMineOrder == "c" ){
					if( iEnemyOrder == 1 ){
						cout << "| ---???????????°?????????????????????" << endl;
						cout << "| ---????????§???" << endl << "|" << endl;
						iEnemyPoint++;
						iCnt++;
					}
					else if( iEnemyOrder == 2 ){
						cout << "| ---??????????????§?????????????????????" << endl;
						cout << "| ---???????????§???" << endl << "|" << endl;
						iCnt++;
					}
					else{
						cout << "| ---?????????????????????????????????" << endl;
						cout << "| ---????????§???" << endl << "|" << endl;
						iMinePoint++;
						iCnt++;
					}
				}else if( sMineOrder == "P" || sMineOrder == "p" ){
					if( iEnemyOrder == 1 ){
						cout << "| ---???????????°?????????????????????" << endl;
						cout << "| ---????????§???" << endl << "|" << endl;
						iMinePoint++;
						iCnt++;
					}
					else if( iEnemyOrder == 2 ){
						cout << "| ---??????????????§?????????????????????" << endl;
						cout << "| ---????????§???" << endl << "|" << endl;
						iEnemyPoint++;
						iCnt++;
					}
					else{
						cout << "| ---?????????????????????????????????" << endl;
						cout << "| ---???????????§???" << endl << "|" << endl;
						iCnt++;
					}
				}
				else{
					cout << "|" << endl << "| ! G(??°???),C(?????§???),P(??????)??????????????\????????????????????? !" << endl << "|" << endl;
				}
			}

			if( iMinePoint == 5 ){
				cout << "| 5????????????????????????????????????????????????????????§???!" << endl << "|" << endl;
				iWin++;
			}
			else if( iEnemyPoint == 5 ){
				cout << "| 5????????????????????????????????????????????????????????????????????§???..." << endl << "|" << endl;
				iLose++;
			}
		}
		else if( sStartEnd == "END" || sStartEnd == "end" ){
			if( iWin == 0 && iLose == 0 ){ break; }
			while( 1 ){
				if( iWin > 0 || iLose > 0 ){
					cout << "| ???????????¨\?????????????????????? ???YES?????????NO?????§??\???????????????????????? " << endl;
					cout << "|    ...";
					cin >> sRecord;

					if( sRecord == "YES" || sRecord == "yes" ){
						cout << "| ????????°..." << iWin << "???" << endl;
						cout << "| ????????°..." << iLose << "???" << endl;
						break;
					}
					else if( sRecord == "NO" || sRecord == "no" ){ break; }
					else{ cout << "|" << endl << "| !???YES?????????NO????????\???????????£??????????????? !" << endl << "|" << endl; }
				}
			}
			break;
		}
		else{
			cout << "|" << endl << "| !???START?????????END????????\???????????£??????????????? !" << endl << "|" << endl;
		}
	}

	cout << "<< ????????????????????????????§???§?????????>>" << endl;
	//??¢????????¨????????????????????????????????¨??????????????¢?????????
	_getch();
	
	return 0;
}*/


#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] << endl;

		StrLen--;

		if( StrLen == 0 ) break;
	}

	return 0;
}

C++: #include<iostream>
#include<algorithm>
using namespace std;
int main()
{
  char s[21];
  cin >> s;

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

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

	fgets( str, sizeof( str ), stdin );
	for ( int i = strlen( str ) - 2; 0 <= i; i-- )
	{
		putchar( str[i] );
	}
	puts("\n");

	return 0;
}

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

int main(void){
  string str; 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>

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

C++: #include <bits/stdc++.h>
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>

using namespace std;

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

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

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

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