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<iostream>
#include<vector>
using namespace std;
int main(){
string str;
cin>>str;
for(int i=str.size()-1;i>=0;i--){
cout<<str[i]<<endl;
}

return 0;
}

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

using namespace std;

char str[21];

int main(){
  scanf("%s",str);
  for (int i=0,l=strlen(str);i<l/2;i++){
    swap(str[i],str[l-i-1]);
  }
  printf("%s\n",str);
  return 0;
}

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

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

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

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

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

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

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

int main()
{
	char str[20];
	int i;
	
	gets(str);
	
	for(i=strlen(str)-1; i>=0; i--) cout << str[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;
}

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

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

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

string s;

void rec(int a)
{
  if (a == -1) return;

  cout << s[a];
  rec(a - 1);
}

signed main(void)
{
  cin >> s;

  rec(s.size());
  cout << endl;
}

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

int main(){
    string str = "";
    cin >> str;
    for(int i = 0; i < str.size(); i++){
        cout << str[str.size() - i -1];
    }
    return 0;
}

C++: #include<iostream>
#include<cstring>
using namespace std;
	
int main()
{
	int u;
	char str[19];
	cin>>str[19];
	int j=strlen(str);
	for(int i=j;i>=0;i--){
	cout<<str[i];
	}
	return 0;
}

C++: #include<iostream>
#include<string.h>
using namespace std;
int main()
{
    string a;int b,c;
    getline(cin,a);
    c=a.length();
    for(b=c-1;b>=0;b--)
    {
        cout<<a[b];
    }
    cout<<endl;


    return 0;
}

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

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

	return 0;
}

C++: #include <bits/stdc++.h>
#define SORT(a) sort(a.begin(), a.end())
#define RSORT(a) sort(a.rbegin(), a.rend())
#define REP(i, n) for (int i = 0; i < n; i++)
#define FOR(i, start, end) for (int i = start; i < end; i++)
#define ALL(a) a.begin(), a.end()
#define MOD(a) a %= 1'000'000'007
using ll = long long;
using namespace std;
const int INF32       = 1'050'000'000;
const long long INF64 = 4'000'000'000'000'000'000;
const int MOD7        = 1'000'000'007;
const int MOD9        = 1'000'000'009;
template <class T> inline bool chmin(T &a, T b) {
    if (a > b) {
        a = b;
        return true;
    }
    return false;
}
template <class T> inline bool chmax(T &a, T b) {
    if (a < b) {
        a = b;
        return true;
    }
    return false;
}

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

    string s;
    cin >> s;
    reverse(ALL(s));
    std::cout << s << '\n';
    return 0;
}

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

int main(){
	char str[30];
	int i=0;
	
	while(cin>>str[i]) i++;
	
	for(;i>=0;i--) cout<<str[i];
	
	cout<<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>

using namespace std;

main(){
  
  char str[21];
  int i=0;
  while(cin >> str[i]){i++;}
  
  i--;
  int j=i;
  for(j=i;j>=0;j--){
    
    cout << str[j] ; 
  }
  //cout << '\n' ;

  cout << endl;
  return 0;
}

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

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

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

  }
  cout<<'\0';
  cout << endl;
  }
  return 0;

}

C++: #include<iostream>
#include<cmath>
#include<string>
#include<cctype>
#include<vector>
#include<numeric>
#include<algorithm>
using namespace std;
int main(){
        //char s[20];
        string s;
        cin >> s;
//      scanf("%s",s);
        for(int i=s.size();i>=0;i--){
                printf("%c",s[i]);
        }
        printf("\n");
        return 0;
}

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

string S;
int A[10000];
int main(){
	cin>>S;
	int a=S.size();
	for(int i=a-1;i>=0;i--){
		cout<<S[i];
	}
	cout<<endl;
	return 0;
}

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

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

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

int main()
{
    char str[21];
    int l=0;
    cin>>Str;
    for(int i=0;str[i]!='\0';)
        i++;
    for(int k=i-l;k>=0;k--,l++)
    {
        cout<<str[k];
    }
    cout<<endl;
    return 0;
}

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

int main(void){

  char word[25];
  int i,length;
  
  cin >> word;
  length = strlen(word);
  
  for(i = length - 1; i >=0; i--){
   cout << word[i];
  }
  
  cout << endl;
  
  return 0;

}

C++: #include<iostream>
#include<vector>
using namespace std;
int main(){
string str;
cin>>str;
for(int i=str.size()-1;i>=0;i--){
cout<<str[i]<<endl;
}
cout<<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<stdio.h>
int main()
{ char a[20],i=0;
 while((a[i]=getchar())!='\n'&&i<20)i++;
 i--;
 for(;i>=0;i--)
 printf("%c",a[i]);
 return 0;
}

C++: #include <stdio.h>

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

	scanf("%s", str);

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

	for (j = i - 1; j >= 0; j--){
		printf("%c", str[j]);
	}
	printf("\n");

	return (0);
}

C++: #include <stdio.h>
#include <stdlib.h>
#include <algorithm>
#include <iostream>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <cmath>
using namespace std;

#define FOR(i,s,e) for (int i = int(s); i != int(e); i++)
#define REP(i,e) for (int i = 0; i != int(e); i++)
#define FORIT(i, A) for (auto i : A)
#define ISEQ(c) (c).begin(), (c).end()
#define PRINT(x) cout << (x) << endl
#define SZ(x) ((int)(x).size())

int main(int argc, char const *argv[])
{
	char buf[21];
	char ans[21];
	scanf("%s", buf);
	int i = 0;
	for (;i < 21; i++)
	{
		if (buf[i] == '\0') break;
	}
	i--;
	for (int j = 0; j <= i; j++)
	{
		ans[j] = buf[i-j];
	}
	ans[i+1] = '\0';
	printf("%s\n", ans);
	return 0;
}