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 <cstdio>
#include <cstdlib>
#include <iostream>

using namespace std;

int main()
{
    char a[30];
    char b[30];
    gets(a);
    int count = 0;
    for (int i=0; a[i]; i++)
    {
        count ++;
    }
    int i;
    for (i=0; count != 0; i++)
    {
        b[i] = a[--count];
    }
    b[i] = '\0';
    puts(b);
    return 0;
}

C++: import java.util.*;


public class Main {
	public static void main(String[] args){
	
		Scanner sc = new Scanner(System. in);
		String line = sc.nextLine();
		char[] str = line.toCharArray();
		int n = line.length();
				
		char[] rts = new char[20];
		
		for(int i=0;i<n;i++){
			rts[i]=str[n-i-1];
		}
		
		for(int i=0;i<n;i++){
		System.out.print(rts[i]);
		}
	}
}

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

C++: main(c){scanf("%c",&c)&&c^10&&main(c)*printf(&c);}

C++: #include <iostream>
using namespace std;
int main(void){
    std::string s;
    std::string::iterator iterator_s;
    cin >> s;
    for(std::string::reverse_iterator it=s.rbegin();it != s.rend(); ++it) 
        std::cout << *it ;
    std::cout << "\n";
    return 0;
}

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

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

void test();
string ReverseStr(string str);

int main(void)
{
	test();
	return 0;
}

void test()
{
	string s;

	cin >> s;

	s = ReverseStr(s);

	cout << s << endl;
}

string ReverseStr(string str)
{
	string s;
	int i, t;
	s = str;

	for (i = 0,t = str.size() - 1; i < str.size(); i++, t--)
	{
		str[i] = s[t];
	}

	return str;
}

C++: #include<iostream>
#include<string>
#include<cstdio>
//入力された文字列を逆順に出力
using namespace std;

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

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

int main(void){

	string text;
	cin>>text;
	reverse(text.begin(), text.end());
	cout<<text<<endl;
	return 0;
}

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

using namespace std;

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

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

using namespace std;

int main(void)
{
    string str;
    getline(cin, str);

    reverse(str.begin(), str.end());
    cout << str << endl;

    return 0;
}

C++: #include<stdio.h>
#include<stdlib.h>
int main(void){
  char a,b,i,j;
  char rarara[1000];
  char papapa[1000]; 
  fgets(rarara,sizeof(rarara),stdin);
 for(i=0;rarara[i]!=NULL;i++){};
 a=i;
  for(i=0;i<a;i++)
    papapa[i]=rarara[a-i-1];
  papapa[a]=NULL;
  printf("%s\n",papapa);
  return 0;
}

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

using namespace std;
static const int MAXV = 21;

int main() {
  char A[MAXV]={};
  cin >> A;
  int i=0;
  for(;i<MAXV;i++) {
    //printf("%c", A[i]);
    if (A[i] == 0) break;
  }
  i--;
  for(;i!=-1;i--) {
    printf("%c", A[i]);
  }
  printf("\n");
}

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

int main()
{
   char str[21];
   int length;
   int i;
   scanf("%s",str);
   length=strlen(str);
   for(i=length;i>=0;i--)printf("%c",str[i]);

   return 0;
}

C++: #include<stdio.h>

int main(){
    int i;
    char s[20];
    for(i=0;i<20;i++)s[i]='\0';
    scanf("%s",s);
    for(i=20-1;i>=0;i--)
        if(s[i]!='\0')printf("%c",s[i]);

    return 0;
}

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

int main()
{
	char str[20]={0};

	cin>>str;
	for(int i=19;i>=0;i--){
		if(str[i]!=0) cout<<str[i];
	}
}

C++: #include <iostream>
#include <string>
using namespace std;
int main(){
	string a;
	cin >> a;
	for(int i = a.length() - 1; i >= 0; i--){
		cout << a.at(i);
	}
	cout << endl;
	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;
        }
}

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

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

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

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

int main(){
	char w[20]={};
	char q[20]={};
	cin >> w;

	for(int i=0; i<strlen(w); i++){
		q[i] = w[strlen(w)-i-1];
	}
	cout << q << endl;
	cin >> w;
	return 0;
}

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

main(){
	char str[21];
	cin >> str;
	
	for(int i=strlen(str)-1; i>=0; i--){
		cout << str[i];
	}
	cout<<"\n";
}

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

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

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

using namespace std;

int main(){

  string s;

  cin >> s;
  //abcd
  int len = s.length();
  // len = 4

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

  cout << endl;

}

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

int main(void){

	char s[21];
	int i;

	scanf("%s",s);

	for(i=0; i<strlen(s);i++){

		printf("%c",s[strlen(s)-i]);

	}

	return 0;
}

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

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

using namespace std;

int main() {

	char str[20];
	int i, len;

	cin >> str;
	len = strlen(str);

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

	putchar('\n');

	return 0;

}

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

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

C++: #include<stdio.h>
#include<string.h>
char str[22];

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

C++: #include <cstdio>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <vector>
#include <iostream>
#include <set>
using namespace std;
typedef long long ll;

string str;

int main(int argc, char const *argv[]) {
	cin >> str;
	reverse(str.begin(), str.end());
	cout << str << endl;
	return 0;
}

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

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

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

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