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 <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef pair<ll, int> li;
typedef pair<int, ll> il;
typedef vector<ii> vii;
typedef vector<il> vil;
typedef vector<li> vli;

#define F first
#define S second
#define pb(x) push_back(x)
#define mp(a,b) make_pair(a,b)
#define sz size()
#define all(A)    A.begin(), A.end()
#define mem(a, b) memset(a, b, sizeof(a))
#define f0(i,b)   for(int i=0;i<(b);i++)
#define f1(i,b)   for(int i=1;i<=(b);i++)
#define f2(i,a,b) for(int i=(a);i<=(b);i++)
#define fr(i,b,a) for(int i=(b);i>=(a);i--)
#define rep(i,a,b,c) for(int i=(a);i!=(b);i+=(c))
#define mod 1000000007

#define forr(i,n)    for(i=0; i<n; i++)
#define whilee(i,t)  while(i!=t)
#define  sl(a)  scanf("%lld",&a)
#define  pl(a)  printf("%lld",a)

//for(auto it =A.begin(); it!=A.end(); it++)
//sort(A.begin(),A.end());
//binary_search(A.begin(),A.end(),x);
//reverse(A.begin(), A.end());
//cout << *max_element(A.begin(), A.end());
//cout << *min_element(A.begin(), A.end());
//count(A.begin(), A.end(), X); //counts the occurrences of X
//distance(A.begin(),A.end());  //distance between first to last element
//accumulate(A.begin(), A.end(), 0); //add
//next_permutation(A.begin(), A.end());
//prev_permutation(A.begin(), A.end());
//swap(S[0], T[0]);
//scanf("%d",&x);
//printf("%d\n",x);

//vector <int> A;
//deque <int> A;
//queue <int> A;
//stack <int> A;
//set <int> A;
//map <int,int> A;
//pair <int,int> A ;
//vector <pair <int,int>> A ;
//char ch;
string S, T, U;
ll i, j, k, a, b, c, d, f, g, h, l, m, n, p, q, r, s, t, w, x, y, z, maxx=INT_MIN, minn=INT_MAX, ans=0, sum=0, cnt=0;

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);

    cin>>S;
    reverse(all(S));
    cout<<S<<endl;
    return 0;
}

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

int main()
{
	std::string str;
	
	std::cin >> str;
	
	std::reverse( str.begin(), str.end() );
	
	std::cout << str << std::endl;

 	return 0;
}

C++: string = input("input data")
size = len(string)
st = []
for i in range(size):
    st.append(string[size-i-1])
print(''.join(st), end='')

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

using namespace std;

int main() {
	string str;

	cin >> str;

	auto it1 = str.begin();
	auto it2 = str.end() - 1;

	while (it1 < it2) {
		swap(*it1++, *it2--);
	}

	cout << str << endl;
	return 0;
}

C++: #include<cstdio>
int main(){
    char ch[21];
    int sum;
    scanf("%s",ch);
    for(sum=0; ch[sum]!='\0'; sum++){}
    for(sum=sum-1; sum>=0; sum--)
        printf("%c", ch[sum]);
    printf("\n");
    return 0;
}

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

using namespace std;

int main(void){

  string str;

  cin >> str;

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

C++: #include <stdio.h>
#include <string.h>
int main() {char Tex[25];gets(Tex);for (int j=strlen(Tex)-1;j>=0;printf("%c",Tex[j--]));puts("");return 0;}

C++: #include<iostream>
using namespace std;
int main(){
	int i=0;
	char c[20];
	while(cin>>c[i]){
		if(49<=c[i] && c[i]<=126){
		}else{
			break;
		}
		i++;
	}
	for(;i>=0;i--){
		cout<<c[i];
	}
	cout<<endl;
	return 0;
}

C++: #include<iostream>
#include<algorithm>
#include<cstring>
#define loop(i,a,b) for(int i=a ;i < b ; i++)
#define rep(i,a) loop(i,0,a)
using namespace std;

int main(void){
	string a;

	getline(cin,a);
	
	for(int i=a.size();0<i;i++);
	
	cout<<a<<endl;
	return 0;
}

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

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

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

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

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

C++: #include <bits/stdc++.h>
#define int long long
using namespace std;
const int INF = 1e9 + 7, MOD = 1e9 + 7;
const long long LINF = 1e18;
const int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};
signed main() {
	string s;
	cin >> s;
	reverse(s.begin(), s.end());
	cout << s << endl;
	return 0;
}

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

int main(){

  string s;

  cin>>s;

  for(int i=s.size()-1;i>=0;++i)
    cout<<s[i];

  cout<<endl;

}

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

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

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

int main()
{
    char ch[20];
	int i=0;
	while(cin >> ch[i]){
		i++;
	}
	for(int j=i-1 ; j>=0 ; j--){
		cout<<ch[j];
	}
	cout<<endl;
	return 0;
}

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

using namespace std;

int main()
{
	string str;
	cin >> str;
	
	for (string::reverse_iterator rit = str.rbegin(); rit != str.rend(); rit++) {
		cout << *rit;
	}
	//cout << endl;
	
	return 0;
}

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

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

using namespace std;

int main(){
	string str1, str2;
	char tmp;
	int i, length;

	getline(cin, str1);
	length = str1.size();
	//cout << length << endl;
	str2.reserve(length+1);
	for(i=0;i<length;i++){
		tmp = str1.at(length - i - 1);
		//cout << tmp << endl;
		str2 += tmp;
	}
	//str2 += '\0';
	cout << str2 << endl;
	//getline(cin, str1);

	return 0;
}