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 <iostream>
#include <string.h>
using namespace std;
char a[20];
int CharNumber;
int z = 0;
char temp;

int main()
{
        cin >> a;
        CharNumber = strlen(a);

    for(int x = 0; x < CharNumber; x++)
    {
                for(z = 0; z < CharNumber-x-1; z++)
        {
            temp = a[z+1];
            a[z+1] = a[z];
            a[z] = temp;
        }
    }



        cout << a;


}

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

int main(){
	std::bacic_string st;
	std::cin >> st;
	
	while(!(st.empty())){
		std::cout << st.back();
		st.pop_back();
	}
	std::cout << std::endl;
	return 0;
}

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 >= 0; 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<iostream>
#include<string>
using namespace std;

int main()
{
	string str;

	cin>>str;

	for(int i=0;i<str.size();i++){
		cout<<str.at(str.size()-i-1);
	}
}

C++: 
#include <iostream>
#include <cstdlib>
#include <cstdio>
#include <cmath>
#include <stack>
#include <cctype>
#include <complex>
#include <vector>
#include <algorithm>

using namespace std;


bool solve(){

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

int main(){
	cout.setf(ios::fixed);
	cout.precision(10);
	solve();

	return 0;
}

C++: #include<stdio.h>
#include<string.h>
int main()
{

    char str,rev,arr[100];
    gets(arr);
    strrev(arr);
    printf("%s",arr);
    return 0;

}

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

int main(){
	std::string st;
	std::cin >> st;
	
	while(!(st.empty())){
		std::cout << st.back();
		st.pop_back();
	}
	
	return 0;
}

C++: #include <iostream>
#include <string>
using namespace std;
int main(void){
    int len;
    string a;
    std::cin >> a;
    len =a.length();
    if(len <= 20){
        for(int i = len - 1; i >=0; i--){
            if(isupper( a.at(i) )  != 0) return 0;
        }
        for (int j = len - 1; j >= 0; j--){
            std::cout << a.at(j);
        }
    }
    return 0;
}

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

using namespace std;

int main()
{
    string FirstString;

    cin >> FirstString;

    int PanjangString = FirstString.length();

    for(int a = PanjangString-1; a >= 0; a--)
    {
        cout << FirstString[a];
    }
    cout << endl;

}

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

int main() {
  char str[30];
  int l;
  char tmp;

  cin >> str;
  l = strlen(str);
  for (int i=0; i<l/2; i++) {
    tmp = str[i];
    str[i] = str[l-i-1];
    str[l-i-1] = tmp;
  }
  cout << str << endl;
  return 0;
}

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

int main()
{
	std::string str;

	std::cin >> str;

	for(int i=str.length()-1;i>=0;--i)
	{
		if(str.length()==0)
			break;

		std::cout << str[i];
	}
	std::cout << '\n';
}

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

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

int main(){
	std::string st;
	
	std::cin >> st;
	
	for(int i = st.size(); i>=0; --i){
		std::cout << st[i];
	}
	
	return 0;
}

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

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

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

long long int gcd(long long int l, long long int r) {
	assert(l > 0 && r > 0);
	if (l > r)return gcd(r, l);
	else {
		const long long int num = r%l;
		if (num) {
			return gcd(l, num);
		}
		else {
			return l;
		}
	}
}
long long int lca(long long int l, long long int r) {
	return l / gcd(l, r)*r;
}
int main() {
	string st; cin >> st;
	reverse(st.begin(), st.end());
	cout << st << endl;
	return 0;
}

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

int main(void)
{
  char str[21], reversed_str[21];
  scanf("%s", str);
  int len = strlen(str);

  int i;
  for(i=0; i<len; ++i){
    reversed_str[i] = str[len-1-i];
  }
  reversed_str[len] = '\0';

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

  return 0;
}

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

int main(){
	char str[64];
	int i;
	cin >> str;
	for(i=1;i<=strlen(str);i++){
		cout << str[strlen(str)-i];
	}
	cout << endl;
	return 0;
}

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

using namespace std;

int main() {

	char str[20];

	cin >> str;

	//cout << strlen(str) << endl;

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

	return 0;

}

C++: #include<iostream>
#include<cstdio>
#include<utility>
#include<climits>
#include<cmath>
using namespace std;

int main()
{
	int i, j;

	char str[20] = {};
	for (i = 0; cin >> str[i]; i++)
	{}

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

C++: #include <stdio.h>
#include <string.h>
int main()
{
    char a[50];

    int i,j,b;
        scanf("%s",&a);
        b=strlen(a);
        for(i=b;i>=0;i--)
        {
        printf("%c",a[i]);
        }
    return 0;
}

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

int main() {
	string a,b;
	int i, l;
	
	cin >>a;
	l=a.size();
	b="";
	for (i=0;i<l;i++){
		b=a.substr(i,1)+b;
	}
	cout << b<<endl;
	return 0;
}

C++: #include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<string>
#include<algorithm>
#include<vector> 
#include<limits>
#include<numeric>
#include<math.h>
using namespace std;

#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define in(x) cin >> x
#define out(str) cout << str << endl

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

string S;

int main(){
    cin>>S;
    reverse(S.begin(),S.end());
    out(S);
}

C++: #include<stdio.h>
#include<string.h>
int main(){
    int l;
    char s[32],r[32];
    scanf("%s",s);
    l=strlen(s);
    for(int i=0;i<l;i++){
        r[l-i-1]=s[i];
    }
    for(int i=0;i<l;i++){
        printf("%c",r[i]);
    }
    printf("\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;
}

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

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


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