Go: package main

import (
	"fmt"
)

func main() {
	var str string
	fmt.Scanf("%s", &str)
	fmt.Printf("%s\n", strReverse(str))
}

func strReverse(str string) string {
	data := []rune(str)
	result := []rune{}

	for i := len(data) - 1; i >= 0; i-- {
		result = append(result, data[i])
	}

	return string(result)
}

C++: #include <stdio.h>
#include <string.h>
 
int main(void)
{
  char str[10000] = {0};
  int cx;

  fgets(str, sizeof(str), stdin);
  cx = strlen(str);

  for (int x=cx-2; x>=0; x--) {
    putchar(str[x]);
  }
 
  return 0;
}

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

int main(){ 
    string in,buf; 
    int f=0,b;

    cin >> in;
    b = in.size()-1;

    while(b-f > 1){
        buf = in[f];
        in[f] = in[b];
        in[b] = buf[0]; 
        f++;    
        b--;    
    }

    cout << in << endl;
    return 0;
}

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

int main(){
  string str;
  int len; 
  cin >> str;
  len = str.length();

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

C++: #include<iostream>
#include<cmath>
#include<string>
#include<cctype>
#include<vector>
#include<numeric>
#include<algorithm>
using namespace std;
int main(){
        char s[100];
        scanf("%s",s);
//      reverse(s.begin(),s.end());
    for(int i=strlen(s);i>=0;--i){
                printf("%c",s[i]);
        }
        printf("\n");
        return 0;
}

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

int main()
{
	std::string input;
	char ch;
	while (std::cin.get(ch)) {
		input.push_back(ch);
	}
	for (std::string::const_reverse_iterator i = input.rbegin(); i != input.rend(); ++i) {
		std::cout << *i;
	}

	return 0;
}

C++: #include <stdio.h>
#include <string.h>
 
int main(){
    char str[21];
 
    scanf( "%s",str );
 
    int strL = strlen( str );
 
    for( int i = strL-1;i >= 0;i-- ){
        puts( &str[i] );
    }
    return 0;
}

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

using namespace std;

main(){
	char str[20];
	int len=0;
	int i;
	scanf("%s",str);

	len=0;
	while(str[len] != '\0') {
	len++;
	}

	for(i=len-1;i>=0;i--) {
	printf("%c",str[i]);
	}
	printf("\n");
}

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

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

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 (std::vector<char>::const_reverse_iterator i = input.rbegin(); i != input.rend(); ++i) {
		std::cout << *i;
	}

	return 0;
}

C++: print(input()[::-1])

C++: #include<iostream>
#include<string.h>
using namespace std;
int main(){
  char str[20];
  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 str[21];
	cin >> str;
	int length = strlen(str),x;
	for (int i = 0; i < length; i++){
		x = length - i-1;
		cout <<str[x];
	}
	cout << "\n";
	cin >> x;
	return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <string>
using namespace std;
int main(){ 
	string str;
	cin >> str; 
	for(int i = 0; i < str.size(); i++){
		cout << str[str.size()-1-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<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++: main(i){i*=i-10&&main(getchar())*putchar(i-1?i:10);}

C++: #include<bits/stdc++.h>
typedef long long ll;
typedef unsigned long long ull;
using namespace std;
#define pb push_back
int dy[]={0, 0, 1, -1, 0};
int dx[]={1, -1, 0, 0, 0};
 
#define FOR(i,a,b) for (int i=(a);i<(b);i++)
#define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--)
#define REP(i,n) for (int i=0;i<(n);i++)
#define RREP(i,n) for (int i=(n)-1;i>=0;i--)
char s[100];
int main(){
    scanf("%s",s);
    int n = strlen(s);

    REP(i,n){
        printf("%c",s[n - 1 - i]);
    }
    printf("\n");
    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++: import java.util.Scanner;

public class Main{
    Main(){
	Scanner sc= new Scanner(System.in);

	while(sc.hasNext()){
	    String str = sc.next();
	    char[] ch = str.toCharArray();

	    for(int i = str.length()-1; i >= 0; i--)
		System.out.print(Character.toString(ch[i]));
	    System.out.println();
	}
    }

    public static void main(String[] args){
	new Main();
    }
}

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

int main(){
string a;
cin >> a;
int b;
b=a size();
int c;
c=b-1;
while(c>=0){
string d(a,c,1);
cout << d;
c=c-1;}

}

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>
#include<string>

int main(){
	std::string str;

	std::cin >> str;

	for(int i = str.length()-1; i >= 0 ; --i)
		std::cout << str.at(i);
	
	std::cout << std::endl;
  return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <string>
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(){
	char str[22];
	int i=0;
	int flag=0;

	memset(str,'0',22);

	fgets(str,sizeof(str),stdin);

	printf("%s",str);

	for(i=21,flag=0;i>=0;i--){
		if(str[i]==10){
			flag=1;
		}else if(flag==1){
			printf("%c",str[i]);
		}
	}

	return 0;
}

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


int main()
{
	string str;

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

	return 0;
}

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

using namespace  std;

int main()


{
    string s;
   int i;
 while(cin>>s)
{

  strreverse(s)
cout<<s<<endl;
}
  return 0;
}

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

int main() {

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

    return 0;
}

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

int main(){
    int cut=1;
    char str[25]={0};
    for(int i=0;i<25;i++){
        scanf("%c",&str[i]);
        if(str[i]=='\n')break;
        cut++;
    }
    for(int j=cut;j>-1;--j){
        printf("%c",str[j]);
    }
        cout <<""<<endl;
    return 0;
}

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

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

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

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 <bits/stdc++.h>

using namespace std;

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

C++: main(n){n-10&&main((getchar()),putchar(n));exit(!puts(""));}

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

using namespace std;

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

	reverse(s.begin(), s.end());
	cout << s << endl;


}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
  string a;
  cin>>a;
  for(int i=a.size()-1;i>=0;i--){
    cout<<a[i];
  }
  cout<<"\n";
}