Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func read() string {
	sc.Scan()
	return sc.Text()
}

func main() {
	sc.Split(bufio.ScanLines)
	s := read()
	rv := ""
	cols := strings.Split(s, "")
	for i := 0; i < len(cols); i++ {
		rv += cols[len(cols)-1-i]
	}
	fmt.Println(rv)
}

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

#define rep(i,n) for(int i=0; i<n; i++)
#define swap(a,b) tmp=a, a=b, b=tmp
int main(){
	string s;
	cin >>s;
	for(int i=s.length(); i>=0; i--) cout << s[i];
	cout << 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;
    return 0;
}

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

using namespace std;

int main()
{
    string a;

    cin >> a;

    int PanjangStringa = a.length();

    for (PanjangStringa-1; 0<=PanjangStringa; PanjangStringa--)

    cout <<a[PanjangStringa];
    return 0;
}

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

	 return 0;


}

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

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    char s[24];
    int n = cin.getline(s, 24).gcount();
    for(int i=n-1; i>=0; --i) cout<<s[i];
    cout<<'\n';
    return 0;
}

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

#define rep(i, n) REP(i, 0, n)
#define ALL(v) v.begin(), v.end()
#define MSG(a) cout << #a << " " << a << endl;
#define REP(i, x, n) for (int i = x; i < n; i++)
#define OP(m) cout << m << endl;
typedef long long ll;
typedef unsigned long long ull;

int main()
{
    string s;
    cin >> s;
    reverse(ALL(s));
    OP(s);
    return 0;
}

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

using namespace std;

int main(){
  string s;
  cin >> s;
  string ans;
  for(int i = 0; i < s.length(); i++){
    ans = s[i] + ans;
  }

  cout << ans << endl;
 
   
   
}

C++: #include <cmath>
#include <cstdlib>
#include <cstdio>

#include <iostream>
#include <vector>
#include <algorithm>
#include <utility>

int main() {
  std::string str;

  std::cin >> str;

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

  return 0;
}

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

int main(){
    std::string str;
    while(std::cin >> str){
        for(auto it=str.rbegin(); it!=str.rend(); ++it)
            std::cout << *it ;
        std::cout << std::endl;
    }
}

C++: #include <iostream>
#include <cmath>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <list>
#include <deque>
#include <algorithm>
#include <iomanip>
#include <functional>
#include <numeric>

#define REP(i, n) for(int i = 0;i < (n); i++)
#define REP2(i, x, n) for(int i = (x); i < (n); i++)
#define REPR(i, n) for(int i = (n); i >= 0; i--)

#define ALL(a) (a).begin(),(a).end()
#define SORT(c) sort((c).begin(),(c).end())
#define DESCSORT(c) sort(c.begin(), c.end(), greater<int>())

#define LL long long int
#define LD long double

#define PI 3.14159265358979

using namespace std;

//================================================

int main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	
	string S; cin >> S; reverse(ALL(S)); cout << S << "\n";
	return 0;
}

C++: #include<iostream>
#include<algorithm>
#include<vector>
#include<cmath>
#include<cstdio>
#include<string>
typedef long long int ll;

using namespace std;


string back(string s){
	string ret="";
	for(int i=s.size()-1;i>=0;i--){
		ret+=s[i];
	}
	return ret;
}

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

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

C++: #include<iostream>
#include<string.h>
#include<stdio.h>
using namespace std;
int main(){
  char str[21];
  scanf("%s",str);
  int len =strlen(str);
  for(int i=len-1;i>=0;i--){
    printf("%c",str[i]);
  }
  cout<<endl;
}

C++: #include<stdio.h>
#include<string.h>
#define MAX 30


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

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

using namespace std;
int main()
{
   char s[21];
   int n;
   cin >> s;
   n = strlen( s );
   for(i=n-1;i<=0;i--)
      cout << s[i];
   cout << endl;
   return 0;
}

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

int main()
{
    char s[21] = {};
    scanf("%20s", s);
    for (int i = strlen(s) - 1; i >= 0; --i) putchar(s[i]);
    puts("");
}

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

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

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

C++: process.stdin.resume();
process.stdin.setEncoding('utf8');

process.stdin.on("data",function(chunk){
    console.log(chunk.split("").reverse().join())
})

C++: #include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <climits>
#include <cfloat>
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(int argc, char *argv[]) {
  string str;

  cin >> str;
  string::reverse_iterator itr = str.rbegin();
  while (itr != str.rend()) {
    cout << *itr;
    itr++;
  }
  cout << endl;
  return 0;
}

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

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

C++: #include <iostream>

using namespace std;

class String{
private:
	int length;
public:
	String();
	int str_len(char* str);
};

String::String(){
	length = 0;
}

int String::str_len(char* str){
	int i=0;
	while(str[i++]){
		length++;
	}
	return length;
}

int main(void){

	char str[20];
	int len;
	String string;

	cin >> str;
	len = string.str_len(str);

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

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


char* reverse(char *A){
	char* save = A;
	while (*A) {
		++A;
	}
	char* p = save;
	--A;
	for (; p < A; --A) {
		char t = *A;
		*A = *p;
		*p = t;
		++p;
	}
	return save;
}


int main() {
	char A[100];
	cin >> A;
	cout << reverse(A) << endl;
}

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

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()
{
        string str;
        cin >> str;

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

        return 0;
}