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

C++: #include<iostream>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include<string>
#include<vector>
#include<cmath>
#include<stack>
#include<queue>
#include<sstream>
#include<algorithm>
#include<map>
#include<complex>
using namespace std;


#define li			long long int
#define rep(i,to)	for(int i=0;i<((int)(to));i++)
#define repp(i,start,to)	for(int i=(int)(start);i<((int)(to));i++)
#define pb			push_back
#define sz(v)		((li)(v).size())
#define bgn(v)		((v).begin())
#define eend(v)		((v).end())
#define allof(v)	(v).begin(), (v).end()
#define dodp(v,n)		memset(v,(li)n,sizeof(v))
#define bit(n)		(1ll<<(li)(n))
#define mp(a,b)		make_pair(a,b)
#define rin	rep(i,n)
#define EPS 1e-10
#define ETOL 1e-8
#define MOD 1000000007
#define p2(a,b)		cout<<a<<"\t"<<b<<endl
#define p3(a,b,c)		cout<<a<<"\t"<<b<<"\t"<<c<<endl


int main(){
	string s;
	cin>>s;
	rep(i,sz(s))cout<<s[sz(s)-1-i];
	
	puts("");
	return 0;
}

C++: #include<stdio.h>
#include<string.h>
int main()
{
    char a[20];
    int i;
    gets(a);

    for(i=strlen(a)-1;i>=0;i--)

    {
        printf("%C",a[i]);
   }
   return 0;
}

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

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

  cout << s << endl;
}