Go: package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		str := []rune(scanner.Text())
		for i:=len(str)-1; i>=0; i-- {
			fmt.Printf(string(str[i]))
		}
		fmt.Println()
	}
}

C++: #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
double gcd( double m, double n );
double lcm( double m, double n );
int main(int argc, const char * argv[])
{
    char a[20];
    int n=0;
    while(scanf("%c",&a[n])!=EOF){
        n++;
    }
    for(int i=n-1; i>=0;i--){
        printf("%c",a[i]);
    }
    printf("\n");
    
    
}

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

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

C++: #include <cstdio>
#include <algorithm>
int main( int argc, char *argv[] ) {
	using namespace std;
	char str[20];
	fscanf(stdin, "%s", str);
	for (int i=0; i<20; i++) {
		if (str[i] == '\0') {
			int last = i-1;
			for (int j=0; j<i/2; j++) {
				swap(str[j], str[last-j]);
			}
			break;
		}
	}
	printf("%s\n", str);
	return 0;
}

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

int main(){
  string str;
  cin >> str;
  int l = strlen(str);
  for(int i = l - 1; i >= 0; i--){
    cout << str[i];
  }
  cout << endl;
}

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

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

C++: #include <stdio.h>
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int main() {
    string s;
    getline(cin, s);
    if (s.size() > 0 && s[s.size()-1] == '\r') s.resize(s.size()-1);
    reverse(s.begin(), s.end());
    cout << s << endl;
    return 0;
}

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

using namespace std;

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

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

void reverse(char *);
int main()
{

	
	char str[20];
	gets(str);
	reverse(str);
   getch();

}
void reverse(char *str)
{
	char *p=str;
   *p++;
	if(*p) reverse(p);
   cout << *str;
   
}

C++: #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
const ll MOD = 1e9 + 7/*998244353*/;
const ll INF = 1LL << 60;
ll mod_pow(ll, ll, ll); ll mod_fact(ll, ll); ll mod_inv(ll, ll); ll gcd(ll, ll); ll lcm(ll, ll);
//
int main(){
    string s;
    cin >> s;
    reverse(s.begin(), s.end());
    cout << s << "\n";
}

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

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

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

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

C++: #include<stdio.h>

int main(void){
	char str[21],c;
	int n;
	scanf("%s",str);
	for(int i=0;i<21;i++){
		if(str[i]=='\0'){
			n=i;
			break;
		}
	}
	for(int i=0;i<n/2;i++){
		c=str[i];
		str[i]=str[n-i-1];
		str[n-i-1]=c;
	}
	printf("%s\n",str);
	return 0;
}

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

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

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

int main(){
    std::string str;
    std::queue<char> que;
    std::cin >> str;
    const int size = str.size();
    for(int i = 0; i < size; ++i){
        que.push(str.back());
        str.pop_back();
    }
    for(int i = 0; i < size; ++i){
        std::cout << que.front();
        que.pop();
    }
    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;
}

C++: // Reverse Sequence
#include <cstdio>
#include <cstring>

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

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

int main () {
assdasd
asd
a
sd
a
sda
sd
a
s
d
as
d
as
dassssssssssssssssssss
}

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

int main(){
	char in[30];
	char out[30];
	cin >> in;
	int length = strlen(in);
	for(int i = 0; i<=length;i++){
		out[i] = in[length -i-1];	
	}
	out[length] = in[length];
	cout << out << endl;
	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){string s;cin>>s;int i,l=s.length();for(i=1;i<=l;i++)cout<<s.at(l-i);cout<<endl;}

C++: #include <iostream>
using namaspace std;
int main(){
	char str[20],i=-1;
	for (;;){	
		i++;
		while(cin>>str[i]==EOF) break;
	}
	for (int A=i;A>=0;A--)cout<<str[i];
	cout<<endl;
	return 0;
}

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

int main(int argc, const char * argv[])
{
    int i, k;
    char input[21];
    for (i = 0; i < 20; i++) {
        input[i] = getchar();
        if (input[i] == '\n') {
            break;
        }
    }
    for (k = i - 1; k >= 0; k--) {
        cout << input[k];
    }
    cout << endl;
    return 0;
}

C++: #include<iostream>
#include<algorithm>
#include<cstring>
#define loop(i,a,b) for(int i=a ;i < b ; i++)
#define rep(i,a) loop(i,0,a)
using namespace std;

int main(void){
	string a;

	getline(cin,a);
	
	for(int i=a.size();0<=i;i--)cout<<a[i];
	cout<<endl;
	return 0;
}

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

int main(){
  string str;
  int num;
  
  std::cin >> str;
  num = str.length();
  
  for(int i=num-1; i>=0; i--){
    std::cout << str[i];
  }
  std::cout << std::endl;

  return 0;
}

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

using namespace std;

int main(){
    string str;

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

            cout<< endl;
    }
    
    return 0;
}

C++: #include<iostream>
#include<iomanip>
#include<cstdio>
#include<vector>
#include<algorithm>
#include<cmath>
#include<queue>
#include<stack>
#include<functional>
#include<string>
#include<cstring>
#include <sstream>
using namespace std;
int main(void){
    string str;
    while(cin >> str){
        reverse(str.begin(),str.end());
        cout << str << endl;
    }
    return 0;
}

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

char str[10000];

int main() {
  scanf("%s", str);
  int n = strlen(str);

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

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

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

C++: #include <bits/stdc++.h>
#define rep(i,a) for(i=a-1;i>=0;i--)
using namespace std;

int main(void){
    int i;
    string str;
    cin >> str;
    rep(i,str.length()) {
        cout << str[i];
    }
    cout << endl;
    return 0;
}

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

int main(){
    char str[21];

    scanf( "%s",str );

    int strL = strlen( str );

    for( int i = strL;i >= 0;i-- ){
        printf( "%c",str[i] );
    }
    return 0;
}

C++: #include<stdio.h>
#include<cstring>
using namespace std;
int main()
{
   char str[21];
   scanf("%s",str);
  int l=strlen(str);
   for(char* p=str+l-1;p>=str;p--)
      printf("%c",*p);
   printf("\n");
   return 0;

}