Go: package main

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

var scanner = bufio.NewScanner(os.Stdin)

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func main() {
	scanner.Split(bufio.ScanWords)

	str := nextString()
	for i := len(str) - 1; i >= 0; i-- {
		fmt.Print(str[i:(i + 1)])
	}
	fmt.Print("\n")
}

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

C++: #include <iostream>
using namespace std;
int main(){
    int i=0;
    char a[20],x;
    
    while(cin>>x){
        a[i]=x;
        i++;
        if(i>=20)break;
    }
    
    for(int f=i-1;f>=0;f--){
        cout<<a[f];
    }
    
    cout<<endl;
}

C++: #include<stdio.h>

int main(void){

	char str[100]={0};

	for(int i=0; i<20; i++){
		
		scanf("%c",&str[i]);
		
		if(str[i] == '\n'){
			str[i]='\n';
			break;
		}
	
	}
		
	for(int i=19; i>=0; i--){
			printf("%c",str[i]);
	}
			printf("\n");
}

C++: #include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<string>
#include<vector>
#include<math.h>
#include<queue>
#include<algorithm>
#include<functional>
#include<cstdlib>
#include<cmath>


#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define CI cin >>
#define CO cout <<
#define E << endl;

using namespace std;

typedef pair<int, int> P;
typedef pair<long, long> LP;
typedef pair<int, P> PP;
typedef pair<long, LP> LPP;



int dy[] = { 0, 0, 1, -1, 0 };
int dx[] = { 1, -1, 0, 0, 0 };


string C;
void input(void) {
	CI C;
	return;
}


int main(void) {
	input();
	reverse(C.begin(), C.end());
	
	CO C E

	return 0;
}

C++: #include<cstdio>
using namespace std;
int main()
{
	char str[21];
	char str2[21];
	int i;
	
	scanf("%s",str);
	
	for(i = 0; str[i] != '\0'; i++){
	}
	for(;i > -1; i--){
		printf("%c",str[i-1]);
	}
	return 0;
}

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

using namespace std;

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

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

int main() {
  string strin;
  string strout;

  cin >> strin;
  int len = strin.length();
  for(int i=0; i<len; i++) {
    strout += strin[len-i-1];
  }
  cout << strout << endl;

  return 0;
}

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

using namespace std;
// cin >>
// cin <<
int main(){
	string a;
	int output;
	cin >>a;
	for(int i=(int)a.size();i>=0;i--){
		cout <<a[i];
	}
	cout <<endl;
	return 0;
}

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

template <typename T> void swap(T &a, T &b) {
	T t = a;
	a = b;
	b = t;
}

template <typename T> void reverse(T *a, int len) {
	for (int i = (len - 1) / 2; i >= 0; --i) {
		swap(a[i], a[len - i - 1]);
	}
}

int main() {
	char seq[22];
	scanf("%20s", seq);

	reverse(seq, (int)strnlen(seq, 22));

	puts(seq);
	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<cstdio>
#include<iostream>
using namespace std;
class ReverseSequence{ 
    public:
        void solve(string str){ 
            int n=str.size();
            for(int i=n-1;i>=0;i--){ 
                printf("%c",str[i]);
            }
            printf("\n");
        }
};
int main(){ 
    string str;
    cin>>str;
    ReverseSequence inst;
    inst.solve(str);
}

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

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

using namespace std;

int main(){
  char c[25] = {0};
  scanf("%s", c);
  for(int i = 24; i >= 0; i--)
  {
    if(c)
      cout << c[i];
  }


  return 0;
}

C++: #include<stdio.h>
int main(){
char str[21];
int i;
scanf("%s",str);
for(i=0;;i++){
if(str[i]==(NULL))
break;
}
for(;i<0;i--){
printf("%s",str[i]);
}
printf("\n");
}

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

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

using namespace std;

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

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

//answer3 function
void display(const char& ch) {
	std::cout << ch;
}

int main(){
	std::string str;
	std::cin >> str;
	
	//answer1
	//for(auto it = str.crbegin(); it != str.crend(); ++it){
	//	std::cout << *it;
	//}
	
	
	//answer2
	//std::for_each(str.crbegin(), str.crend(), [](const char& ch){ std::cout << ch; });
	
	//answer3
	std::for_each(str.crbegin(), str.crend(), display);
	
	std::cout << std::endl;
	
	return 0;
}

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

int main(){
	int dataN,i,j,tmp;
	string str;
	
	cin>>str;
	for(i=str.length()-1;0<=i;i--){
	 cout<<str[i];
	}
	
	cout<<endl;
	
	return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <cstring>
#include <cctype>
#include <string>
#include <algorithm>
#define CHAR_NUM 201
using namespace std;

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

C++: #include<iostream>
#include<cstring>
#include<cstdlib>

using namespace std;

int main()
{
    string str;
    cin >> str;
    if(str.size() > 20)
        exit(1);
    else
        {
            string strrev(str.rbegin(), str.rend());
            cout << strrev;
        }
    cout << endl;
}

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

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>
#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 <algorithm>
#include <cctype>
#include <cstdio>
#include <math.h>
using namespace std;

int main() {
	
	char c[20];
	int n=0;
	
	while(cin>>c[n])n+=1;
	
	for(int i=n-1;i>=0;i--)cout<<c[i];
	cout<<endl;
	
	return 0;
}

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

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

#define N 20
using namespace std;

int main() {
    char str[N];
    cin >> str;
    reverse(str,str+strlen(str));
    printf("%s\n",str);
    return 0;
}

C++: #include<iostream>

using namespace std;

int main()
{
    string str;
    cin >> str;
    string rev(str.rbegin(), str.rend());
    cout << rev << endl;
}

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

#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)

int main () {
  char str[21];
  scanf("%s", str);
  int l = strlen(str);
  char str_r[21];
  REP(i, l) str_r[i] = str[l-i-1];
  str_r[l] = '\0';
  printf("%s\n", str_r);
  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;
}