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 <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < (n); i++)
#define repd(i,a,b) for (int i = (a); i < (b); i++)
typedef long long ll;
int main(void)
{
	string str;
	cin >> str;
	reverse(str.begin(), str.end());
	cout << str << endl;
}

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

using namespace std;

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

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

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

using namespace std;

typedef vector<int> vi;
typedef vector<vi> vii;
typedef vector<string> vs;
typedef vector<bool> vb;
typedef vector<vb> vbb;
typedef pair<int, int> pii;
typedef long long ll;
typedef unsigned long long ull;

#define all(a)  (a).begin(),(a).end()
#define rall(a) (a).rbegin(), (a).rend()
#define pb push_back
#define mp make_pair

#define loop(i,a,b) for(int i=(a);i<ull(b);++i)
#define rep(i,n) loop(i,0,n)

const double eps = 1e-10;
const double pi  = acos(-1.0);
const double inf = (int)1e8;

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

C++: #include <iostream>

int main() {
	char str[21];
	std::cin >> str;

	for (int i = strlen(str) - 1; i >= 0; i--)
			std::cout << str[i];
}

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

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

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

int main(){

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

for(int i=strlen(str);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(string::reverse_iterator r = s.rbegin();r!=s.rend();r++) cout<<*r;
  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 <cstdio>
#include <algorithm>
using namespace std;

int main(int argc, char *argv[]) {
	char rcv[20];
	char out[20];
	fscanf(stdin, "%s", rcv);
	int cnt = 0;
	for (int i = 0; i < 20; i++) {
		if (rcv[i] == '\0') {
			for (int j = i-1; j !=-1; j--) {
				out[cnt] = rcv[j];
				cnt++;
			}
			out[cnt] = '\0';
			break;
		}
	}
	printf("%s", out);
	
	return 0;
}

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

int main(){
	char str[21],reverse[21];
	int num,i;
	num=scanf("%21s",str);
	
	
	num=strlen(str)-1;
	
	for(i=0;i<=num;i++){
		reverse[i]=str[num-i];
	}
	
	reverse[i]='\0';
	
	printf("%s\n",reverse);
	
	return 0;
}

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

int main()
{
   char s[20], r[20];
   int n, c, d;
   gets(s);

   n = strlen(s);

   for (c=n-1,d=0;c>=0;c--,d++)
      r[d] = s[c];

   r[d] = '\0';

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

   return 0;
}

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

int main(){
	char str[20];
	scanf("%s",str);
	reverse(str,str + strlen(str));
	printf("%s",str);
	return 0;
}

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

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<bits/stdc++.h>
const long long INF = INT_MAX / 2;
const long long MOD = 1000000007;
const long double PI = 3.1415926;
#define FOR(i,r,n) for(ll i = (ll)(r); i < (ll)(n); i++)
#define RFOR(i,r,n) for(ll i=(ll)(n-1);i>=r;i--)
#define REP(i,n) FOR(i,0,n)
#define REP1(i,n) FOR(i,1,n)
#define RREP(i,n) RFOR(i,0,n)
#define ALL(x) x.begin(),x.end()
#define RALL(x) x.rbegin(),x.rend()
#define ll long long int
using namespace std;
ll ans = 0, sum = 0, n, k, cnt = 0, w, h;
string s;
vector<ll> v;
vector < pair<ll, ll > > vp;
vector<vector<ll> > vv(50, vector<ll>(50, INF));
vector<string> vs;
vector<char> vc;
set<ll> st;
map<char, ll> mp;

/*--------------------template--------------------*/

int main()
{
	cin >> s;
	RREP(i, s.size())
	{
		cout << s[i];
	}
	cout << endl;
}

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

C++: #include <iostream>
#include <vector>
#include <math.h>
#include <string>

int main(void);
std::string rev_string(std::string str);


int main(){
	std::string str = "";
	//char str[20];
	std::cin >> str;
	std::cout << rev_string(str);

	//while (1);
	return 0;
}

//*
std::string rev_string(std::string str){
	int i;
	int len = str.length();
	for (i = 0; i < len / 2; i++) {
		char temp = str[i];
		str[i] = str[len - i - 1];
		str[len - i - 1] = temp;
	}

	return str;
}
//*/

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

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

using namespace std;

void sort(char *str){
	int len, len3 = 0;
	char str2[20], work; 
	len = strlen(str);

	for(int len2 = 0; len > len2; len2++){
		str2[len2] = str[len2];
	}

	for(len3 = 0, len = len - 1; len >= len3; len--,len3++){
		work = str[len];
		str[len] = str[len3];
		str[len3] = work;
	}
}

int main(){
	char str[20];
	while (cin >> str) {
		sort(str);
		cout << str << endl;
	}
}

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

C++: #include<iostream>
#include<string>
#include<string.h>
#include<algorithm>
#include<stdio.h>
#include<cmath>
#include<vector>
#include<utility>
#include<stack>
#include<queue>

#define FOR(i, a, b) for(int i=(a);i<=(b);i++)
#define RFOR(i, a, b) for(int i=(a);i>=(b);i--)
#define MOD 1000000007

using namespace std;

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

	RFOR(i, s.size() - 1, 0) {
		cout << s[i];
	}
	cout << endl;
	return 0;
}

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

int main(){
	int i,len;
	char str[20];

	cin >> str;

	len = strlen(str);

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

	cout << endl;

	return 0;
}

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

using namespace std;

int main(){
	char str[25];
	int i, num;
	
	cin >> str;

	num = strlen(str);

	for(i = num - 1; i >= 0; i --){
		cout << str[i];
	}
	cout << endl;
}

C++: #include <cstdio>
#include <cstring>
#include <algorithm>
using std::__gcd;
using std::sort;
int main(){
	char s[100];
	scanf("%s",s);
	int l = strlen(s);
	for(int i=l-1;i>=0;--i)
		putchar(s[i]);
	putchar('\n');
	return 0;	
}