Go: package main
import (
	"fmt"
	"os"
	"bufio"
)

var sc = bufio.NewScanner(os.Stdin)

func main(){
	sc.Scan()
	str := sc.Text()
	// rev_str := make([]string, len(str))
	defer fmt.Println()
	for _, v := range []rune(str){
		defer fmt.Print(string(v))
	}
}

C++: #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <time.h>
#include <math.h>
#include <vector>
#include <queue>
#include <map>
#include <set>
#include <algorithm>
#include <iterator>
#include <sstream>
#include <string>
#include <bitset>
using namespace std;
#define FOR(I,F,N) for(int I = F; I < (int)(N); I++)
#define rep(i, n) FOR(i, 0, n)
#define FIN(V) cout<<V<<endl
#define pb push_back
#define INF (1 << 30)
typedef pair<int, int> P;
typedef long long ll;
typedef priority_queue<int> pq;
int StrToInt(string);
string IntToStr(int);
int dx[4] = {1, -1, 0, 0};
int dy[4] = {0, 0, 1, -1};

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

	return 0;
}



int StrToInt(string s){
	stringstream ss;
	ss << s;
	int val;
	ss >> val;
	return val;
}
string IntToStr(int i){
	stringstream ss;
	ss << i;
	return ss.str();
}

C++: #include<bits/stdc++.h>
using namespace std;
signed main()
{
     string a;
     cin>>a;
     reverse(a.begin(),a.end());
     cout<<a<<endl;
	}

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

using namespace std;
typedef long long ll;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<ll> VL;
typedef vector<VL> VVL;
typedef pair<int, int> PII;

#define FOR(i, a, n) for (ll i = (ll)a; i < (ll)n; ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(x) x.begin(), x.end()
#define MP make_pair
#define PB push_back
#define MOD 1000000007
#define INF (1LL<<30)
#define LLINF (1LL<<60)
#define PI 3.14159265359
#define EPS 1e-12
#define int ll

signed main(void)
{
  string s;
  cin >> s;

  REP(i, s.size()/2) {
    swap(s[i], s[s.size()-i-1]);
  }
  cout << s << 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 <stdio.h>
#include <stdlib.h>
#include <string.h>

#pragma warning(disable:4996)

int main()
{
	char str[21] = "\0";
	int X;

	scanf("%s", str);

	for (X = strlen(str)-1; X > 0; X--)
	{
		if (X <= (strlen(str) - 1) - X)
			break; 

		str[(strlen(str)-1) - X] ^= str[X];
		str[X] ^= str[(strlen(str)-1) - X];
		str[(strlen(str)-1) - X] ^= str[X];
	}
	printf("%s\n", str);

	return 0;
}

C++: #include<iostream>

using namespace std;

int main(){

   string str;

   cin>>str;

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

   cout<<str<<endl;

   return 0;

}

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

int main(){

  string str,ans;
  int i;

  cin >> str;
  for(i = str.size() - 1 ; i != -1 ; i--){
    ans += str[i];
  }
  cout << ans << endl;

  return 0;
}

C++: #include<iostream>
#include<cmath>
#include<string>
#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 s;
  cin>>s;
  for(int i=s.size();i>=0;i--){
    cout<<s[i];
  }
  cout<<endl;
    return 0;
}

C++: #include <iostream>
#include <queue>
#include <stack>
#include <vector>
#include <stdio.h>
#include <algorithm>
#include <string.h>
#include <string>
#include <cmath>
#include <map>
using namespace std;

#define rep(i,n) for(int i=0;i<int(n);++i)

static const double PI=6*asin(0.5);

char t;
stack<char> qu;

int main(){
	while(cin>>t){
		qu.push(t);
	}
	while(!qu.empty()){
		cout<<qu.top();
		qu.pop();
	}
	cout<<endl;
	return 0;
}

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

using namespace std;

int main( void )
{
  string in;
  while( cin >> in )
  {
     reverse(in.begin(), in.end())'
     cout << in << endl;
  }
  return 0;
}

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

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

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

int main(void)
{
	int i,j=0;
	char str[20],t[20];

	scanf("%s",str);

	for(i=0;str[i]!='\0';i++)
	{
      j=i;
	}
	for(i=0;i<j;i++)
	{
		t[i]=str[i];
		str[i]=str[j];
		str[j]=t[i];
		j-=1;
	}
	printf("%s\n",str);
	return 0;
}

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

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    char s[24];
    cin.getline(s, 24);
    int n = cin.gcount()-1;
    for(int i=n-1; i>=0; --i) cout<<s[i];
    cout<<'\n';
    return 0;
}

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

C++: #include <iostream>
#include <string>
#include <stack>
#include <math.h>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <vector>

using namespace std;






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


}

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

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

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

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

C++: print(input()[::-1])

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

string reverse(string s);

int main(){
    string str;

    cin >> str;

    cout << reverse(str) << endl;

    return 0;
}

string reverse(string s){
    if(s.length() == 0){
        return "";
    }
    string sub = s.substr(1);

    return reverse(sub) + s.substr(0,1);
}

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

int main( void ){
    char str[20];
    scanf( "%s",str );
    for( int i = strlen( str );i > 0;i-- )printf( "%c",str[i] );
    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 <vector>
#include <cmath>
#include <map>
#include <algorithm>

typedef long long ll;
using namespace std;

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

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

#define REPS(i, a, n) for (int i = (a); i < (n); ++i)
#define REP(i, n) REPS(i, 0, n)
#define RREP(i, n) REPS(i, 1, n + 1)
#define DEPS(i, a, n) for (int i = (a); i >= n; --i)
#define DEP(i, n) DEPS(i, n, 0)

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;


const int Max=10000000;
bool prime[Max];
int main(void){
  string str;

  cin >> str;

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

  cout << str << endl;
}

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

#define MAX 1000

int main(void){

	char k[20];
	int c = 0;

	scanf("%s", &k);

	for (int i = 0; k[i] != '\0'; i++){
		c++;
	}

	for (int i = c; i >= 0; i--){
		printf("%c", k[i]);
	}
	printf("\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-1];
		}
		cout << endl;
		}
}
	return 0;
}