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 <iostream>
#include <cstring>
using namespace std;
int main(){
	char str[21];//="Hello world!";
	cin>>str;
	for(int i=strlen(str)-1;i>=0;--i){
		cout<<str[i];
	}
	cout<<"\n";
	return 0;
}

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

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

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

}

C++: #include <bits/stdc++.h>
using namespace std;
int main()
{
	char a[25];
	cin>>a;
	int i,la=strlen(a);
	for(i=la-1;i>=0;i--)
	{
		cout<<a[i];
	} 
	cout<<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-1];
	}
	cout << endl;

    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<algorithm>
using namespace std;
int main(){
	string s;
	while(getline(cin,s)){
		reverse(s.begin(),s.end());
		cout <<s<<endl;
	}
	return 0;
}

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

int main(){
	char str1[21] = "", str2[21] = "";
	cin >> str1;
	int a = 0;
	for(int i = 0;i < 21;i++){
		if(str1[20 - i] != '\0'){
			str2[a] = str1[20 - i];
			a++;
		}
	}
	cout << str2 << "\n";
    return 0;
}

C++: //"push hoge"と言われたらhogeを最後に入れ、"pop"と言われたら最後尾を取りだす。"quit"で終わり。
#include<iostream>
using namespace std;

int main(){
	char str[20];
	int hoge = 0;

	cin >> str;
	for(int i=0;i<20;i++){
		if(str[i] == '\0'){
			hoge = i-1;
			break;
		}
		hoge = i;
	}
	for(int i=hoge;i>=0;i--)
		cout << str[i];
	cout << endl;

	return 0;
}

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

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

#define MAX 20

using namespace std;

int main() {
	char str[MAX];
	cin >> str;

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

	return 0;
}

C++: #include <iostream>
#include <algorithm>
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()
{
char str[21] = { 0 };
int length;
cin >> str;
for (int i = 20; i >= 0; i--){
if (str[i] != 0){
length = i;
break;
}
}
	for (; length >= 0; length--)
		cout << str[length];
	cout << endl;
	return 0;
}

C++: #include<iostream>
#include<stdio.h>
#include<string>
#include<math.h>
#include<iomanip>
using namespace std;
int main(void){

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

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

int main() {
	string s;
	cin >> s;
	cout << string(s.rbegin(),s.rend()) << 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;
}

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

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

C++: #include<cstdio>

char str[25];
char ans[25];

int main()
{
	scanf("%s",str);
	for(int i= 0;i<20;i++)
	{
		ans[i]=str[19-i];
	}
	printf("%s\n",ans);
	return 0;
}

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

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

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

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

C++: #include <list>
#include <vector>
#include <map>
#include <set>
#include <stack>
#include <queue>
#include <deque>
#include <algorithm>
#include <utility>
#include <functional>
#include <sstream>
#include <iostream>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>
#include <climits>
using namespace std;
inline int toInt(string s) { int v; istringstream sin(s); sin >> v; return v;}
template<class T> inline string toString(T x) { ostringstream sout; sout << x; return sout.str();}
typedef vector<int> vi;
typedef vector<vi>  vvi;
typedef vector<string> vs;
typedef pair<int, int> pii;
typedef long long ll;
#define ALL(a) (a).begin(),(a).end()
#define RALL(a) (a).rbegin(),(a).rend()
#define EACH(t,i,c) for(t::iretator i=(c).begin(); i!=(c).end(); ++i)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define FOR(i,a,b) for(int i=(a);i<=(b);++i)
#define REP(i,n) FOR(i,0,n-1)
const double EPS = 1e-12;
const double PI = acos(-1.0);

const int day[] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};

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

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

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

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

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

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

int main(){
	char str[21];
	char temp[21];
	int i = 0;

	memset(str, 0, sizeof(str));
	memset(temp, 0, sizeof(temp));

	while(cin >> str){
		int n = strlen(str);
		for(; n!=0; ){
			temp[i++] = str[--n];
		}
		cout << temp << endl;
	}
	return 0;
}

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

int main()
{
    string A;
	char R;

	cin >> A;	
	for(int i=0; i<=A.length()/2; i++){
		R = A[i];
		A[i] = A[A.length()-i-1];
		A[A.length()-i-1] = R;
	}
	cout << A << "\n";
	
    return 0;
}

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

int main(){
	std::array<char, 20>str;
	
	for(int i=0; i<20; ++i){
		std::cin >> str[i];
	}
	
	for(int i=str.size()-1; i>=0; --i){
		std::cout << str[i];
	}
	std::cout << std::endl;
	
	return 0;
}

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

using namespace std;

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

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