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 <stdio.h>
#include <string.h>
int main()
{
	char in[21];

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

	return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <string>
using namespace std;
int main () {
	string s;
	while (cin >> s) {
		reverse (begin (s), end (s));
		cout << s << endl;
	}
}

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

using namespace std;

int main(void){
	string str;
	do{
		cin >> str;
	}while (str.length() > 20);
	for (int i = (str.length()-1); i>=0; --i){
		cout << str[i];
	}
	cout << endl;
	return 0;
}

C++: #include<stdio.h>
#include<string.h>
int main(){
    char str[100];
    int i,j;
    while(gets(str)){
        j = strlen(str);
        for(i=j-1;i>=0;i--){
            printf("%c",str[i]);
        }
        printf("\n");
    }
    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;

}

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

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(islower( a.at(i) ) != 0 )
                std::cout << a.at(i);
        }
    }
    
    return 0;
}

C++: main(i){char a[20];for(gets(a),i=strlen(a);i;i--)putchar(a[i]);}

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

using namespace std;

int main()
{
	string s;

	cin >> s;
	reverse(s.begin(),s.end());
	cout << s << endl;

	return 0;
}

C++:  #include<iostream>
 #include<stdio.h>
 #include<string>
 #include<math.h>
 #include<iomanip>
 #include<algorithm>
 #include<string.h>
 #include<cctype>
 #include<map>
 #include<set>
 #include<vector>
 #include<sstream>
 
 using namespace std;

 int main()
 {
   string str;
   cin>>str;
   for(int i=0;i<str.length()/2;i++) swap(str[i],str[str.length()-i-1]);
   cout<<str<<endl;
   //while(1);      
   return 0;    
 }

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

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

int main() {
	char str[25];
	for (int i = 0;i < 25;i++) {
		str[i] = '\0';
	}
	cin >> str;
	for (int i = 24; i >= 0; i--) {
		if (str[i] == '\0') continue;
		cout << str[i];
	}
	cout << endl;
	return 0;
}

C++: line = input()

ret = "";
for i in range(1,len(line)):
	ret += line[len(line)-1-i];

print(ret)

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>
#include<string>

using namespace std;

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

C++: #include<cstdio>
#include<cstring>
using namespace std;
 
int main(void){
  char str[25];
  scanf("%s",str);
  int l = strlen(str);
  for(int i = l; i >= 0; i--){
    putchar(str[i]);
  }
  putchar('\n');
  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;
	}

	cout << endl;

	return 0;
}

C++: #include<iostream>
#include<algorithm>
using namespace std;
int main() {
    string S;
    cin >> S;
    reverse(S.begin(), S.end() );
    cout << S << endl;
    return 0;
}

C++: #include<stdio.h>
#include<string.h>
int main()
{
    int i,l;
    char a[20];
    gets(a);
    l=strlen(a);
    for(i=l;i>=0;i--)
   {

    printf("%c",a[i]);
   }
    return 0;
}

C++: #include<iostream>
using namespace std;
void print();
int main()
{
    print();
    cout.put('\n');
}

void print()
{
    char c=getchar();
    if(c=='\n')
    {
        cout<<c;
    }
    else
    {
        print();
        cout<<c;
    }
}

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

void swap(char &a,char &b){
	char temp=a;
	a=b;
	b=temp;
}

int main(){
	string s;
	getline(cin,s);
	unsigned int len=s.length();
	for(unsigned int i=0;i<len/2;i++)
		swap(s[i],s[len-i-1]);
	cout<<s<<"\n";
	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 <iostream>
using namespace std;

int main()
{
	string str;
	cin >> str;

	for(int i = str.length() - 1; i >= 0; i--)
		cout << str[i];
 
	return 0;
}

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

C++: #include <stdio.h>

int main() {
    const int MAX = 20;
    char input[MAX];
    for (int i = 0; i < MAX; ++i) {
        input[i] = 0;
    }
    char result[MAX + 1];
    for (int i = 0; i < MAX + 1; ++i) {
        result[i] = 0;
    }

    scanf("%s", &input);
    int counts = 0;
    {
        int offset = 0;
        while (input[offset] != 0) {
            counts++;
            offset++;
        }
    }

    for (int i = 0; i < counts; ++i) {
        result[counts - i - 1] = input[i];
    }
    result[counts] = '\n';

    printf(result);
    return 0;
}

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

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

using namespace std;

const int N = 20;

char str[N]; 

int main() {
	while (scanf("%s", str) != EOF) {
		int len = strlen(str);
		for (int i=len-1; i>=0; --i) putchar(str[i]);
		putchar('\n');
	}
	return 0;
}

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

int main(){

  string s;

  cin>>s;

  reverse(s.begin(), s.end());
  
  cout<<s<<endl;
}

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

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

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

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

int main(){
  string str;
  int len;


  while( cin >> str ){
  
    reverse(str.begin(),str.end());
    //len = str.length();
    /*
  for(int i=len;i>=0;i--){
    cout << str[i];
    
  }
    */
    cout << str<<endl;

  

  }
}

C++: #include <iostream>
#include <string>
#include <algorithm>
#include <cstdio>
#include <vector>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
using namespace std;

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