Go: package main

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

func reverse(s string) string {
	runes := []rune(s)
	for i, j := 0, len(runes)-1; i < j; i, j = i+1, j-1 {
		runes[i], runes[j] = runes[j], runes[i]
	}
	return string(runes)
}

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	scanner.Scan()
	input := scanner.Text()
	fmt.Println(reverse(input))
}

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

int main(){
	char s[20],t;
	for(int i=0;i<20;i++){
		s[i]=0;
	}
	gets(s);
	for(t=0;s[t]!=0;t++){
	}
	for(int i=0;i<t;i++){
		cout << s[t-i-1] ;
	}
	cout << "\n" ;
	
return 0;
}

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

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

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

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

C++: #include<stdio.h>
#include<string.h>
int main()
{
    char ch[20];
    int i;
    while(gets(ch)!=EOF)
    {
        for(i=0;ch[i]!='\0';i++)
        {
        }
        for(i=i-1;i>=0;i--)
        {
            printf("%c",ch[i]);
        }
        printf("\n");
    }

    return 0;
}

C++: //Reverse sentence
#include <string>
#include <iostream>

using namespace std;

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

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

using namespace std;

int main(void){

  string s;

  cin >> s;

  for( int i = s.size() ; i >= 0 ; i--){
    cout << s[i];
  }
  cout << endl;
  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];
    printf("%c",str[a-i-2]);}
  // printf("\n"); 
  // papapa[a]=NULL;
  //printf("%s\n",papapa);
  
  return 0;
}

C++: #include<iostream>

using namespace std;



int main(){
  char str[20];
  int i;
  cin >> str;
  
  for(i=0;str[i]!='\0';i++);
  for(i=i-1;i>=0;i--){
    cout << str[i];
  }
}

C++: #include "bits/stdc++.h"
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
#define rep(i,n) for(ll i=0;i<(ll)(n);i++)
#define all(a) (a).begin(),(a).end()
#define pb emplace_back
#define INF (1e9+1)

int main(){
    string s;
    cin>>s;
    
    reverse(all(s));
    cout<<s<<endl;
}

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

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

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

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

using namespace std;

int main(){
	string in;

	cin >> in;

	for(int i = in.length()-1; i >= 0; i--){
		cout << in.at(i);
	}

	cout << endl;

	return 0;
}

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

C++: #include<stdio.h>
#include<string.h>
#include<iostream>
#include<vector>
#include<set>
#include<queue>
#include<ctype.h>
#include<math.h>
#include<map>
using namespace std;
int main() 
{
	char a[21];
	gets(a);
	int len=strlen(a);
	for(int i=len-1;i>=0;i--)
		putchar(a[i]);
	return 0;
}

C++: #include <iostream>
#include <string>
using namespace std;
int main(){
	string s;
	cin>>s;
	for(int i=0;i<20;i++){
		cout<<s[20-1-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<iostream>
#include <string>

using namespace std;

void Reverse()
{
    string str;
    
    cin>>str;
    
    for(int i=str.size(); i--;) //最後から出力
    {
        cout<<str[i];
    }
   
    return;
}
    
  
int main()
{  
    Reverse();
    return 0;
}

C++: #include <cstdio>
#include <cstdlib>
#include <cmath>
#include <climits>
#include <cfloat>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <sstream>
#include <complex>
#include <stack>
#include <queue>
using namespace std;
static const double EPS = 1e-5;
typedef long long ll;
#define FOR(i,n) for(i=0;i<n;i++)
#define rep(i,n) for(int i=0;i<n;i++)

void f(){
	int c=getchar();
	if(c!=-1)f();
	putchar(c);
}

int main(){
	f();
	return 0;
}

C++: #include <cstdio>
#include <cstring>
#define LOOP(index,times) for(int index=0;index<times;index++)
using namespace std;

int main(){

char str[20];
scanf("%s",str);

LOOP(i,strlen(str))
	printf("%c",str[strlen(str)-i]);
printf("%c\n",str[0]);

return 0;		
}

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

using namespace std;

int main(void)
{
	string a;
	cin>>a;
	for(int i=0;i<a.size()/2;i++){
		char tmp=a.at(i);
		a.at(i)=a.at(a.size()-i-1);
		a.at(a.size()-i-1)=tmp;
	}
	cout<<a<<endl;
}

C++: #include <cstdio>
#include <cstring>
using namespace std;
int main() {
  char str[20];
  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;
  while(getline(cin, s)) {
    // reverse(s.begin(), s.end());
    vector<int> v;
    v.push_back(3);
    std::reverse(v.begin(), v.end());
    cout << s << endl;
  }
  return 0;
}

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

	return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <cstdio>
#include <map>
#include <string>
using namespace std;
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n) FOR(i,0,n)

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

C++: #include <iostream>
#include <string>
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 s;
	cin >> s;
	for (int i = 1; i < s.length(); i++){
		cout << s[s.length() - 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(void)
{
  string str;

  cin >> str;

  for (auto itr = end(str); itr-- != begin(str);) cout << *itr;
  cout << endl;

  return 0;
}

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

using namespace std;

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

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


}

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

std::string reverse_str(std::string str);

int main()
{
	std::string str;
	while (std::cin >> str)
	{
		str = reverse_str(str);
		std::cout << str << std::endl;
	}
	return 0;
}

std::string reverse_str(std::string str)
{
	std::string str_ans;
	for (unsigned long i = 1; i <= str.size(); ++i)
	{
		std::string::iterator it = std::prev(end(str), i);
		str_ans += *it;
	}
	return str_ans;
}