Go: package main

import "fmt"

func main() {
	var str string
	var result string

	fmt.Scanf("%s", &str)

	for i := len(str) - 1; i >= 0; i-- {
		result += string(str[i])
	}

	fmt.Println(result)
}

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.at(i);
	}
	cout << endl;

	return 0;
}

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

using namespace std;

int main(void) {
        char input;
        vector<char> str(5);

        while((input = getchar()) != '\n') {
                str.insert(str.begin(), input);
        }

        for (char output : str) {
                putchar(output);
        }
        puts("");

        return 0;
}

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

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

using namespace std;

int main()
{
    string a;

    cin >> a;

    int PSa = a.length();

    for (PSa; 0<=PSa; PSa--){
        cout <<a[PSa];
    }

    return 0;
}

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

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

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

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

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

C++: #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <algorithm>
#include <cstring>
using namespace std;
 
int main() {
    char a[25], i;
    scanf("%s", &a);
    for(i=strlen(a)-1;i>=0;i--){
       printf("%c", a[i]);                         
                             
    }
    printf("\n");
    
    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>
using namespace std;

int main(){
  string str;
  int len;


  while( cin >> str ){
  len = str.length();

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

  

  }
return 0;
}

C++: ///
// File:  0006.cpp
// Author: ymiyamoto
//
// Created on Wed Nov  8 22:09:01 2017
//

#include <cstdint>
#include <iostream>
#include <string>

using namespace std;

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

  cout << endl;

  return 0;
}

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

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

  for(auto it = str.rbegin(); it != str.rend(); ++it)
    std::cout << *it;
  std::cout << std::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 <string>
using namespace std;

int main()
{
	string before, after = "";

	cin >> before;
	for(int i=0;i<before.size();i++) 
		after += before[before.size()-(i+1)];

	cout << after << endl;

	return 0;
}

C++: #include<iostream>
#include<cstring>
using namespace std;
int main(){
	char in[20],out[20];
	cin >>in;
	int len = strlen(in);
	for(int i=0; i<len; i++){
		out[len-i-1] = in[i];
	}
	out[len] = 0;
	cout <<out<<endl;
	return 0;
}

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

int main(void)
{
	char str[20];
	gets(str);
	int n;
	n=strlen(str);
	int i;
	for(i=n-1; i>=0; i--){
		printf("%c",str[i]);
	}
return 0;
}

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

int main() {
	std::string str;

	std::cin >> str;
	std::reverse(str.begin(), str.end());
	std::cout << str;

	return 0;
}

C++: #include <stdio.h>
#include <string.h>
 
int main()
{
    char str[21];
    int i, leng;
 
    scanf("%s", str);
    leng=strlen(str);
    for( i=leng-1; i>=0; i-- ){
        printf("%c", str[i]);
    }
    printf("\n");
    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];
  cout <<endl;
  return 0;
}

C++: #include<string>
#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];
	}
	cout<<endl;
	return 0;
}

C++: #include <stdio.h>
int main(){
int n=0;
char a[1000];
for(int i=0;i<1000;i++)a[i]='\0';
scanf("%s",a);
while(a[n]!='\0')n++;
for(int i=n-1;i>=0;i++)printf("%c",a[i]);
printf("\n");
}

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

using namespace std;

int main()
{
	char C[20];

	cin >> C;

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

	cout << endl;

	return 0;
}

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

//answer3 function
void display(const char& ch) {
	std::cout << ch;
}

int main(){
	std::string str;
	std::cin >> str;
	
	//answer1
	//for(auto it = str.crbegin(); it != str.crend(); ++it){
	//	std::cout << *it;
	//}
	
	
	//answer2
	std::for_each(str.crbegin(), str.crend(), [](const char& ch){ std::cout << ch; });
	
	//answer3
	//std::for_each(str.crbegin(), str.crend(), display);
	
	std::cout << std::endl;
	
	return 0;
}

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

int main()
{
	string a;
	cin>>a;
	for(int i=0;i<a.length()/2;i++){
		char tmp=a[i];
		a[i]=a[a.length()-i-1];
		a[a.length()-i-1]=tmp;
	}
	cout<<a;
	return 0;
}

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

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

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

using namespace std;

int main(){
    string a;
    cin>>a;
    reverse(a.begin(), a.end());
    cout<<a<<endl;
    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];
	}
	return 0;
}

C++: char b[99],*p;main(){gets(b);for(p=index(b,0);p-b;putchar(*--p));}

C++: #include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main() {
  string s;
  cin>>s;
  vector<char> c;
  for(int i=0;i<(int)s.size();i++) 
    c.push_back(s[i]);
  reverse(c.begin(),c.end());
  for(int i=0;i<(int)s.size();i++) 
    cout<<c[i];
  cout<<endl;
  return 0;
}

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

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

C++: import sys

lines = []
for line in sys.stdin:
    print(line[::-1])

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

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