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 <iostream>
#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 <vector>
#include <iterator>
#include <algorithm>

int main()
{
	std::vector<char> input;
	std::copy(
		std::istreambuf_iterator<char>(std::cin),
		std::istreambuf_iterator<char>(),
		std::back_inserter(input));
	for (auto i = input.rbegin(); i != input.rend(); ++i) {
		std::cout << *i;
	}

	return 0;
}

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

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

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

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

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 str;
	getline(cin,str);
	for(int i=str.size()-1;i>=0;i--){
		cout<<str[i];
	}
	cout<<endl;
}

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

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

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

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

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

int main (void) {
    char s[21];
    int i;
    int l;
    
    printf("Input text: ");
    gets(s);
    l=strlen(s);
    for (i=l-1;i>=0;i--){
        printf("%c",s[i]);       
   }    
    printf("\n");
    system("pause");
}

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

using namespace std;

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

C++: #include<cstdio>
#include<cstring>
int main(void){
	char a[21];
	int c;
	scanf("%s", a);
	c = strlen(a);
	for (int i = 1; i <= c; i++)printf("%c", a[c - i]);
	return 0;
}

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

int main(){
  int i,j;
  char s[20];
  char tmp[20];

  cin >> s;
  for(i=0;s[i] != NULL; i++);
  for(j=i-1;j>=0;j--){
    printf("%c",s[j]);
  }
  cout << endl;

return 0;
}

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

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

C++: #include <iostream>
#include <string>
using namespace std;
int main(){
char a[40];
int len,b;
cin.getline(a,40);
len = strlen(a);
for(int i=len;i>=0;i--){
cout<<a[i];
}
cout<<' '<<endl;
return 0;
}

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

C++: #include <math.h>
#include <iostream>
#include <ios>
#include <iomanip>
#include <algorithm>
#include <functional>
#include <string>

#define YES "YES"
#define NO "NO"
#define space ' '

using namespace std;

void func();

int main(void)
{
	
	func();

	return 0;
}


void func()
{
	string in;
	cin >> in;

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

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

int main()
{
    char *rev;
    cin>>rev;
    strrev(rev);
    cout<<rev<<"\n";
}

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

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

C++: #include <stdio.h>

int main(void){
	char s[21];
	int i = 0,j;
	
	while(scanf("%c",&s[i]) != EOF){
		i++;
	}
	
	for(j = i-2;j >= 0;j--){
		printf("%c",s[j]);
	}
	printf("\n");
	
	return 0;
}

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

int main(){
	std::string st;
	std::cin >> st;
	
	while(!(st.empty())){
		std::cout << st.back();
		st.erase(st.begin() + st.size() -1);
	}
	std::cout << std::endl;
	return 0;
}

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

using namespace std;

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

C++: #include<iostream>
#include<cstdio>
#include<string>
#include<stdio.h>
//入力された文字列を逆順に出力
using namespace std;

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

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

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

  while(cin >> str)
  {
    for(i = 0;str[i+1] != '\0';i++);
    for(;i != EOF;i--){
      cout << str[i];
    }
    puts("");
  }
}

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

C++: #include<cstdio>
#include<cstring>
int main(void){
	char a[21];
	int c;
	scanf("%s", a);
	c = strlen(a);
	for (int i = 1; i <= c; i++)printf("%c", a[c - i]);
	printf("\n");
	return 0;
}

C++: #include<map>
#include<set>
#include<list>
#include<cmath>
#include<queue>
#include<stack>
#include<cstdio>
#include<string>
#include<vector>
#include<complex>
#include<cstdlib>
#include<cstring>
#include<climits>
#include<numeric>
#include<sstream>
#include<iostream>
#include<algorithm>
#include<functional>

using namespace std;

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

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

C++: #include<iostream>
#include<string>
using namespace std;
int main(){
  string s;
  cin >>s;
  for(int i=1; i<=s.size(); i++){cout <<s[s.size()-i];}
  cout <<endl;
  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 <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
    char str[20],hold;
    while(gets(str))
    {
        int i=0,n=strlen(str);
        if(n==2)i++;
        while(i<=n/2)
        {
            hold=str[i];
            str[i]=str[n-i-1];
            str[n-i-1]=hold;
            i++;
        }
        str[n]='\0';
        puts(str);
    }
    return 0;
}

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

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

    return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <string>
#include <cmath>
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<stdio.h>

using namespace std;

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