Go: package main

import (
  "fmt"
)

func main() {
  var a string
  fmt.Scan(&a)
  for i:= len(a) -1; i>=0; i-- {
    fmt.Print(string(a[i]))
  }
  fmt.Println()
}

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

int main( void ){
    char str[20];
    scanf( "%s",str );
    int lStr = strlen( str )-1;
    for( int i = 0;i < strlen( str );i++ ){
        printf( "%c",str[lStr] );
    return 0;
}

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

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

int main(){
    char str[20],res[20];
    int n;
    scanf("%s",str);
    n = strlen(str);

    printf("%s\n",str);
    for(int i = 0; i < n; i++){
        res[n - i - 1] = str[i];
    }
    printf("%s\n",res);
    return 0;
}

C++: #include<stdio.h>
#include<string.h>
int main()
{
    char arr[30];
    int i,s;
    gets(arr);
    s=strlen(arr);
    for(i=s-1;i>=0;i--)
    {
        printf("%c",arr[i]);
    }
    printf("\n");
    return 0;
}

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

int main(void)
{
  char str[20], reversed_str[20];
  scanf("%s", str);
  int len = strlen(str);

  int i;
  for(i=0; i<len; ++i){
    reversed_str[i] = str[len-1-i];
  }
  reversed_str[len] = '\0';

  printf("%s\n", reversed_str);

  return 0;
}

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

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

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

using namespace std;

int main() {
    char buf[24];
    scanf("%s", buf);
    string str(buf);

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

    printf("%s\n", str.c_str());
    return 0;
}

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