Go: package main

import "fmt"

func main() {
	var str string
	var result string

	fmt.Scanf("%s", &str)

	for i := len(str) - 1; i >= 0; i-- {
		result += string(str[i])
	}

	fmt.Println(result)
}

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<cstdio>
#include<cstring>
int main(void){
  char str[21];
  int i;
  scanf("%s",str);
  for(i=strlen(str)-1;i>=0;i--){
    printf("%c",str[i]);
  }  
  printf("\n");
  return 0;
}

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

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

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

using namespace std;

int main(int argc, char const* argv[])
{
	string str;

	cin >> str;

	reverse( str.begin(), str.end() );

	cout << str << endl;

	return 0;
}

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

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

int main(){
	char str[30]={};
	int i=0;
	
	cin >> str;
	
	for(i = str.length() - 1;i>=0;i--) cout<<str[i];
	
	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<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++: #include <stdio.h>
int main(void){
    char s[21],*p;
    scanf("%s",s);
    for(p=s;*p++;);
    for(p--;s<=p;p--)putchar(*p);
    puts("");
    return 0;
}

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

C++: #include <stdio.h>
int main(void){
    char s[22]={'\n'},*p;
    gets(s+1);
    for(p=s;*p++;);
    for(p--;s<=p;p--)putchar(*p);
    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;
}

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

	return 0;
}

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

char input[20];

int main(){
	cin >> input;

	for(int i=strlen(input); 0 <= i; i--){
		cout << input[i];
	}
	cout << endl;
}

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

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

int main(){
	string str, mod;

	cin >> str;
	int len = str.length();

	for ( int i = len-1; i >= 0; --i ){
		mod += str[ i ];
	}

	cout << mod << endl;

	return 0;
}

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

int main(){
    std::string str;
    while(std::cin >> str){
        for(auto it=str.rbegin(); it!=str.rend(); ++it)
            std::cout << *it ;
    }
}

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

void reverse(string s);

int main(){
	string s;
	int len;
	
	getline(cin, s);
	len = s.length();
	
	for(len--; len >= 0; len--){
		cout << s[len];
	}
	
	cout << endl; 
	
	return 0;
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
//ranker
using namespace std;

using ll = long long;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;
using pii = pair<int, int>;
using pis = pair<int, string>;
using psi = pair<string, int>;
using D = double;


int main()
{
    string str;

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

    return 0;
}

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

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

using namespace std;

int main()
{
	string S;

	cin >> S;

	for (string::size_type i = 0; i < S.size() / 2; i++)
	{
		swap(S[i], S[S.size() - i - 1]);
	}

	for (string::size_type i = 0; i < S.size(); i++)
	{
		cout << S[i];
	}

	cout << endl;

	return 0;
}

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

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

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

int main(){
	char c[20];
	int cnt=0;
	do{
		scanf("%c",&c[cnt]);
		cnt++;
	}while(c[cnt]);
	for(int i=cnt-1;i>=0;i--){
		cout<<c[i];
	}
	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<stdio.h>

int main(){
  char string[24];
  char revString[24];
  int i,s;

  fgets(string,22,stdin);
  for(i = 21;string[i] != '\n';i--){
    if(i == 0){
      break;
    }
  }
  i--;
  for(s = 0;i >= 0;i--){
    revString[s] = string[i];
    s++;
  }
  revString[s] = '\0';

  printf("%s\n",revString);  
  return 0;
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <stdio.h>

using namespace std;

int main()
{
	string str;

	cin>>str;

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

	return 0;
}

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 ;
    return 0;
}

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

int main(){
    string str;
    cin >> str;
    
    for(unsigned int i = 1;i <= str.size();i++){
        cout << str.at(str.size()-i);
    }cout << endl;
    
    
    return 0;
}

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

using namespace std;
int a;
char test[21];
char temp;

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