Go: package main
import (
	"fmt"
	"os"
	"bufio"
)

var sc = bufio.NewScanner(os.Stdin)

func main(){
	sc.Scan()
	str := sc.Text()
	// rev_str := make([]string, len(str))
	defer fmt.Println()
	for _, v := range []rune(str){
		defer fmt.Print(string(v))
	}
}

C++: t = input()
s=t[::-1]
print (s)

C++: //
//  main.cpp
//  CppTest
//
//  Created by Ryu on 2017/02/08.
//  Copyright ?? 2017??´ Ryu. All rights reserved.
//

#include <iostream>
#include <algorithm>
#include <cstdio>
#include <cmath>
using namespace std;

int main(int argc, const char * argv[]) {
    // insert code here...
    cin.tie(0);
    ios::sync_with_stdio(false);
    
    char x;
    char str[20];
    int n = 0;
    while (cin.get(x)) {
        str[n] = x;
        //printf("%c", str[n]);
        n++;
    }
    
    
    for(int i = 0; i < n; i++){
        printf("%c", str[n - i - 1]);
    }
    
    
    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<iostream>
#include<string>
#include<algorithm>
using namespace std;

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

	reverse(str.begin(), str.end());
	cout << str << endl;
}

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

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

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

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

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

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

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

using namespace std;

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

	for(int ix = str.size()-1;ix>=0;--ix)
		cout<<str[ix]<<flush;
	cout <<endl;

	return 0;
}

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

using namespace std;

int main()
{
string str;

while(cin >> str)
{
for(string::reverse_iterator rit = str.rbegin(); rit != str.rend(); ++rit)
cout << *rit;

cout << endl;
}

return 0;
}

C++: /*http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0006&lang=jp*/

#include <iostream>

using namespace std;

int main(){
    string str;
    cin>>str;
    string::reverse_iterator rt=str.rbegin();
    while(rt!=str.rend()){
        cout<<*rt++;
    }
    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];
  }
  return 0;
}

C++: //#define _USE_MATH_DEFINES
#include <iostream>
//#include <stdio.h>
//#include <iomanip>
#include <vector>
#include <string>
//#include <algorithm>
//#include <functional>
//#include <cmath>

using namespace std;


int main(){

	string str1,str2;
	
	cin >> str1;

	for (int i = str1.length()-1; i >= 0; i--){
		str2.push_back(str1[i]);
	}


	cout << str2 << endl;


	return 0;
}

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

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

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

C++: #include <iostream>
#include <string.h>
using namespace std;
int main()
{
   char str[21];
   cin>>str;
  while(cin>>str)
{
   int len=strlen(str);
   for(int i=str;i>=0;i--)
   cout<<str[i];
   cout<<endl;
  }
  return 0;
}

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

using namespace std;
// cin >>
// cin <<
int main(){
	string a;
	int output;
	getline(cin,a);
	for(int i=(int)a.size();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=0;i<20;i++){
		cout<<s[20-1-i]<<endl;
	}
    return 0;
}

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

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

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

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

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

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

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

int main(void)
{
	int i,a;
	char moji[21];
	
	scanf("%s",&moji);
	a=strlen(moji);
	for(i=1;i<=a;++i)
	{ 
		printf("%c",moji[a-i]);
	}
	printf("\n");
	
	return 0;
}

C++: #define _CRT_SECURE_NO_WARNINGS
#define M_PI 3.14159265358979
#include <iostream>
#include <stdio.h>
#include <string>
#include <math.h>
#include<iomanip>
#include<vector>
#include<cmath>
#include <algorithm>

using namespace std;


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

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


	return 0;
}

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

int main(){

	string str;
	
	cin >> str;
	
	std::istringstream stream(str);
	for(int i=str.length()-1; i>=0; i--){
		stream >> str[i];
	}

	cout << str << endl;

	return 0;
}

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

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


}

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

#define MAX 256

int main(void){

	char k[21];
	int c = 0;

	scanf("%s", &k);

	for (int i = 0; k[i] != '\0'; i++){
		c++;
	}

	for (int i = c; i >= 0; i--){
		printf("%c", k[i]);
	}
	printf("\n");
	
	return 0;
}

C++: #include<iostream>
#include<cstring>
using namespace std;
int main(){
  char str[21];
  cin >> str;
  int a = strlen(str);
  for(int i =a;i>=0;i--){
    cout << str[i];
  }
  cout << endl;
}

C++: #include <iostream>

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

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>
int main(void){
    char s[21],*p;
    while(~scanf("%s",s)){
        for(p=s;*p++;);
        for(p--;s<=p;p--)putchar(*p);
        puts("");
    }
    return 0;
}

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

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

	return 0;
}