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 <stdio.h>
#include <string.h>
#include <stdlib.h>

//østrðtÉµÄstrÉãü·éÖ
void reverseString(char *str){
	char *hoge;
	int length;

	hoge = (char *)malloc( sizeof(char) * strlen(str) );
	
	length = strlen(str);
	for(int i=0 ; i<length ; i++){
		hoge[length-i-1] = str[i];
	}
	for(int i=0 ; i<length ; i++){
		str[i] = hoge[i];
	}
	free(hoge);
} 
 
int main(){
	char str[80];

	while (scanf("%s", str) != EOF) {
		reverseString(str);
		printf("%s\n", str);
	}

	return 0;
}

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

int main(){
    int cut=1;
    char str[21]={0};
    for(int i=0;i<20;i++){
        scanf("%c",&str[i]);
        if(str[i]=='\n')break;
        if(str[i]==' '){
            str[i]='\0';
            i-=1;
            }
        cut++;
    }
    for(int j=cut;j>-1;--j){
        printf("%c",str[j]);
    }
        cout <<""<<endl;
    return 0;
}

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

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

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>

int main(){
  std::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>
#include<algorithm>
#include<vector>

using namespace std;

//Nayeem Shahriar Joy ,Applied Physics And Electronic Engineering , University of Rajshahi.

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(){
	int num,i;
	string str,tmp;
	cin >> str;
	num = str.length();
	tmp = str;
	for(i = 0; i < num ; i++)
		str[i] = tmp[num-i-1];
	cout << str << endl;
}

C++: #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

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

C++: #include<iostream>
using namespace std;
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>
using namespace std;
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>

int main(void){

    std::string str;
    std::getline(std::cin,str);
    str.reverse(str.begin(),str.end());
    std::cout<<str<<std::endl;
    return 0;
}

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

int main(){
	char str[25];
	
	for(int i = 0; i < 25; i++) str[i] = 0;
	
	scanf("%s", str);
	
	int p = 25;
	while(str[--p] == 0);
	while(p >= 0){
		printf("%c", str[p--]);
	}
	
	return 0;
}

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

int main() {
  std::string input;
  getline(std::cin, input);

  for(unsigned int cnt = input.length(); cnt > 0; --cnt) {
    std::cout << input[cnt -1];
  }
  std::cout << std::endl;
}

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

using namespace std;

int main()
{
	char ar[25];
	gets(ar);
	reverse(ar,ar + strlen(ar));
	puts(ar);	 
	return 0;
}

C++: #include<stdio.h>
#include<string.h>
#include<stack>
#include<algorithm>
using namespace std;
void out (   )
{
    char c;
    scanf("%c",&c);
    if (c=='\n')
        return ;
    out();
    printf("%c",c);
}
int main()
{
    out();
    return 0;
}

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

int main(void)
{
char str[256];
char rev[256];

scanf("%s", str);

for (int i = 0; str[i] != '\0'; i++){
rev[i] = str[strlen(str) - 1 - i];
}
rev[strlen(str)] = '\0';

printf("%s\n", rev);

return (0);
}

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

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

int main(){
  std::string str;

  std::cin >> str;

  int n = str.size();
  for(int j=n-1;j>=0;j--){
    std::cout << str[j];
  }
  std::cout << std::endl;
}

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

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

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

    return 0;
}

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

C++: #include <iostream>
#include <string>
#include <map>
#include <vector>
#include <deque>
#include <queue>
#include <stack>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <complex>
#define rep(i, b) for(int i = 0; i < (b); i++)
#define repi(i, a, b) for(int i = (a); i < (b); i++)
#define repd(i, a, b) for(int i = (a); i >= (b); i--)
#define ALL(u) (u).begin(), (u).end()
#define INF 100000000

using namespace std;
typedef long long ll;

int main(){
	string s;
	cin >> s;
	reverse(ALL(s));
	cout << s << endl;
	return 0;
}

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

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

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

    return 0;
}