Go: package main

import (
	"fmt"
	"bufio"
	"os"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		str := []rune(scanner.Text())
		for i:=len(str)-1; i>=0; i-- {
			fmt.Printf(string(str[i]))
		}
		fmt.Println()
	}
}

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

using namespace std;

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

	return 0;
}

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

using namespace std;

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

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

int main(){
	char str[30]={};
	int i=0;
	
	while(cin>>str[i]) i++;
	
	for(;i>=0;i--) cout<<str[i];
	
	return 0;
}

C++: #include <iostream>
#include <stdio.h>
#include <string>
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.h>
using namespace std;



int main() {
	char a[25];
	int i = 0;
	cin >> a;
	int b = strlen(a);
	for(b ;b>=0;b--)
		cout << a[b] ;
	return 0;
}

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

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

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

int main(void)
{
	string str;

	cin >> str;

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

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

string ilham, bojos;
int ndaru;
int main(){
	cin >> ilham;
	ndaru = ilham.length();
	for(int i = ndaru-1; i >= 0; i--){
		bojos = bojos + ilham[i];
	}
	cout << bojos << "\n";
	
	return 0;
}

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

using namespace std;

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

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

#define ll long long int

#define rep(p,q) for(int i = p; i < q;i++)


//6

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

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

using namespace std;

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

	cout << str << endl;
}

C++: #include<stdio.h>
#include<string.h>
int main()
{
    char arr[20];
    gets(arr);
    strrev(arr);
    printf("%s\n",arr);
    return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main()
{
	char a[20];
	scanf("%s",a);
	for(int i=strlen(a)-1;i>=0;i--)
	{
		cout<<a[i];
	}
	cout<<endl;
}

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

typedef long long int ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<pair<int, int> > vii;
#define rrep(i, m, n) for(int (i)=(m); (i)<(n);  (i)++)
#define  rep(i, n)    for(int (i)=0; (i)<(n);  (i)++)
#define  rev(i, n)    for(int (i)=(n)-1; (i)>=0; (i)--)
#define vrep(i, c)    for(__typeof((c).begin())i=(c).begin(); i!=(c).end(); i++)
#define  ALL(v)       (v).begin(), (v).end()
#define mp            make_pair
#define pb            push_back
template<class T1, class T2> inline void minup(T1& m, T2 x){ if(m>x) m=static_cast<T2>(x); }
template<class T1, class T2> inline void maxup(T1& m, T2 x){ if(m<x) m=static_cast<T2>(x); }

#define INF 1000000000
#define MOD 1000000009
#define EPS 1E-9

string s;

int main()
{
  cin >> s;

  rev(i, s.size()) cout << s[i];  cout << endl;

  return 0;
}

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

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

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

using namespace std;

int main(){
	char str[21];
	int count=0;
	
	scanf("%s", str);
	
	while( str[count] != '\0' ) ++count;
	
	for(int i=count-1; i>=0; --i)
		printf("%c", str[i]); 
	printf("\n");

	return 0;
}

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

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

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

using namespace std;

string revstr( string str ) {
	string ret;
	for(int i = str.length() - 1; i >= 0; i--)
		ret += str[i];
	return ret;
}

int main(void){
	string str;
	cin >> str;
	cout << revstr( str ) << endl;
	return 0;
}

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

int main()
{
	string moji;
	char r_moji[20];

	cin >> moji;

	for(int i=0; i < moji.length(); ++i)
	{
		r_moji[i] = moji[moji.length()-(i+1)];
	}
	
	for(int i=0; i < moji.length(); ++i)
		cout << r_moji[i];

	cout << '\n';

	return 0;
}

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

int main()
{
	std::string str;

	std::cin >> str;

	size_t strL = str.length();

	for(size_t i=0; i<strL; ++i)
	{
		std::cout << str[strL-1-i];
	}
	std::cout << '\n';

}

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

int main(void)
{
	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(auto it=str.rbegin();it!=str.rend();++it)cout << *it;
    cout << endl;
    return 0;
}

C++: #include <iostream>
#include <iomanip>
#include <cmath>
#include <string>
#include <cstring>
#include <utility>
#include <vector>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#define debug(x) cerr << #x << ':' << x << endl
#define rep(i,n) for(int i=0;i<(int)n;++i)
#define ALL(c) (c).begin(), (c).end()
using namespace std;
typedef long long ll;

int main(){
    string s;
    cin >> s;
    reverse(ALL(s));
    cout << s << endl;
    return 0;
}

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

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

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

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

int main( void ){
    char str[20];
    scanf( "%s",str );
    int lStr = strlen( str )-1;
    for( int i = 0;i < strlen( str );i++ ){
        printf( "%c",&str[lStr] );
    }
    return 0;
}

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

using namespace std;

int main()
{

string s;
cin>>s;
reverse(s.begin(),s.end());
cout<<s;

}

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

C++: #include <iostream>
#include <string>
using namespace std;
int main(){
	string str;

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

	return 0;
}

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

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

int main()
{
     int i,x,y;
     char a[25], b[25];
     gets(a);
     y=strlen(a)-1;
     x=y;
     for(i=0;i<=y;i++)
     {
          b[i]=a[x];
          x--;
     }
     b[i]='\0';
     puts(b);
     return 0;
}

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

int main(){
    char str[25];
    cin>>str;
    for(long i=strlen(str); i>=0; i--){
        cout<<str[i];}
    return 0;
}