Go: package main

import (
	"fmt"
)

func main() {
	var str string
	fmt.Scanf("%s", &str)
	fmt.Printf("%s\n", strReverse(str))
}

func strReverse(str string) string {
	data := []rune(str)
	result := []rune{}

	for i := len(data) - 1; i >= 0; i-- {
		result = append(result, data[i])
	}

	return string(result)
}

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

#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;
}
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>
#include<string>

using namespace std;

int main () {
	string line;
	getline (cin, line);
	for (string::reverse_iterator it = rbegin (line); it != rend (line); it++) {
		cout << *it;
	}
	cout << endl;

	return 0;
}

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

int main(){
    int num;
	char str[NUM];

	cin >> str;

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

	}

	return 0;
}

C++: #include <iostream>

using namespace std;
string reverse(string src)
{
  int size = src.size();
  string dest = string(size, '_');
  for (int i = 0; i < size; i++) {
    dest[size-i-1] = src[i];
  }
  return dest;
}

int main(int argc, char const* argv[])
{
  string input;
  cin >> input;
  cout << reverse(input) << endl;
  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--;)
    cout << s[i];
  cout << endl;
}

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

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

	return 0;
}

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

using namespace std;

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

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

}

C++: #include <iostream>

using namespace std;

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

	int i = str.length() - 1;

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

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

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

return 0;
}

C++: #include<stdio.h>
#include<iostream>
#include<math.h>
#include<algorithm>
#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<cstring>
using namespace std;
int main(){
  char str[21];
  cin >> str;
  for(int i = strlen(str);i>=0;i--){
    cout << str[i];
  }
  cout << endl;
}

C++: #include<iostream>
#include<cstring>
#include<algorithm>
using namespace std;
int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  string str;
  cin>>str;
  reverse(str.begin(),str.end());
  cout<<str<<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;

}

C++: #include <iostream>
#include <cstring>
using namespace std;
 
int main(){
	char str[20];

	cin >> str;
	int n = strlen(str)-1;

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

	cout << endl;

	return 0;
}

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

int main()
{
	char s[21];
	cin.getline(s, 21, '\n');
	int l = strlen(s);
	for (int i = l - 1; i >= 0; i--)
		cout << s[i];
	cout << endl;
	return 0;
}

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

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

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

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

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

C++: #include<iostream>
#include <fstream>
#include<string>
#include<cctype>
using namespace std;
string str;
string::iterator itr;
int main() {
	cin >> str;
	int p = str.size();
	itr = str.end();
	for (int i = 0; i < p; i++)
	{
		itr--;
		cout << *itr;
		
	}
	cout << endl;
			return 0;
}

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

int main() {
	int i;
	string s;
	cin >> s;
	for (i = 0; i <= 20; i++) {
		if (s[i] == 0)
			break;
	}
	for (i--; i >= 0; i--) {
		cout << s[i];
	}
	cout << endl;
	return 0;
}

C++: #include <iostream>

using namespace std;

int main() {
	string s;
	cin >> s;
	for (int i = s.size()-1; i >=0; i--)
		cout << s[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>
using namespace std;

int main() {
	char str[25];
	for (int i = 0; i < 25; i++) {
		str[i] = '\0';
	}
	cin >> str;
	for (int i = 24; i >= 0; i--) {
		if (str[i] == '\0') continue;
		cout << str[i];
	}
	cout << endl;
	return 0;
}

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

#define REP(i, n) for(i=0;i<n;i++)
#define MOD_NUM (1000000007)

int main(void)
{
	char str[21];
	int i;

	fgets(str, sizeof(str), stdin);

	for (int i = strlen(str) - 1; i >= 0; i--){
		if (str[i] == '\r' || str[i] == '\n') continue;
		
		printf("%c", str[i]);
	}
	printf("\n");

	return 0;
}

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

using namespace std;
using ll = long long;
using pii = pair<int, int>;

int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  cout << fixed << setprecision(10);
  
  string s;
  cin >> s;
  reverse(s.begin(), s.end());
  cout << s << endl;

  return 0;
}

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

using namespace std;

int main() {

	char str[20];
	int i, len;

	cin >> str;
	len = strlen(str);

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

	putchar('\n');

	return 0;
}

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

using namespace std;

int main() {

	char str[20];
	int i, len;

	cin >> str;
	len = strlen(str);

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

	return 0;

}

C++: #include <iostream>
#include <string>
#include <algorithm>
using namespace std;
 
int main(){
	string s;
	while ( 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 = 0;i < s.size();i++) {
		cout << s[s.size() - i - 1];
	}
	cout << endl;

	return 0;
}