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;

	getline(cin , str);
		for(int i = str.size() - 1 ; i >= 0; i--)
			cout << str[i];
}

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

using namespace std;

int main(){
  char str[1000];

  int length;

 cin>>str;

 length=strlen(str);

 for(int n=length-1;n>=0;n--){
	cout<< str[n];
 }




 

















return 0;
}

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

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

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

using namespace std;

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

	return 0;
}

C++: #include <iostream>
#include <string>
#include <map>
#include <vector>
#include <set>
#include <iomanip>
#include <fstream>
#include <stdint.h>
#include <cmath>
#include <algorithm>
#include <utility>
#include <numeric>
using namespace std;

constexpr int INF       = 1000000000;/* 1e+9a */
constexpr int MODULO    = 1000000007;

#define REP(i,f,n) for(int i=(f); i < (n); ++i)
#define PER(i,f,n) for(int i=(n-1); i >= f; --i)

//----------------------------------
//----------------------------------

signed main()
{
    ios::sync_with_stdio(false);
	string s;
	cin >> s;
	PER(i, 0, s.size())
		cout << s[i] << endl;
}

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 <stdio.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<stdio.h>

int main(){
    int i;
    char s[20];
    for(i=0;i<20;i++)s[i]='\0';
    scanf("%s",s);
    for(i=20-1;i>=0;i--)
        if(s[i]!='\0')printf("%c",s[i]);

    return 0;
}

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

int main(int,char**){
	std::string str;
	std::cin >> str;
	for(int i(str.size()-1);i>=0;--i){
		std::cout << str[i];
	}
	return 0;
}

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

int main()
{
	char s[21];
	cin.getline(s, 21, '\n');
	int l = strlen(s);
	for (int i = l - 1; i >= 0; i--)
		cout << s[i];
	return 0;
}

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

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

#define MAX 20

int main(){
	char str[MAX + 1];

	cin >> str;

	int flag = 0, i = 0;
	while( !flag || i >= 0){
		if( flag ){
			cout << str[i--];
		} else {
			if(str[i] == '\0'){
				i--;
				flag = 1;
			} else {
				i++;
			}
		}
	}
	cout << endl;
	return 0;
}

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

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

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

using namespace std;

int main(){
  char str[1000];

  int length;

 cin>>str;

 length=strlen(str);

 for(int n=length-1;n>=0;n--){
	cout<< str[n];
 }




 

















return 0;
}

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

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

#define INPUT_FROM_FILE (0)
#if INPUT_FROM_FILE
#include <fstream>
#endif

int main(int argc, char **argv){
#if INPUT_FROM_FILE
	std::ifstream ifs("test.txt");
#endif
	std::string str;

#if INPUT_FROM_FILE
	ifs >> str;
#else
	std::cin >> str;
#endif

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

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

using namespace std;

int main() {
    int i,len;
    string ch;

    cin >> ch;

    len = ch.length();

    for(i = 0;i < len / 2;i++){
        int box = ch[i];
        ch[i] = ch[len - i];
        ch[len - i] = box;
    }

    for(i = 0; i <= len;i++){
        cout << ch[i];
    }
    cout << endl;

    return 0;
}

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

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

int main(void) {
    std::string str;

    std::cin >> str;
    std::for_each(str.crbegin(), str.crend(), [](const char& ch) {
        std::cout << ch;
    });
    std::cout << std::endl;

    return 0;
}

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

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

int main() {
    ios::sync_with_stdio(false);
    string s;
    cin >> s;
    reverse(s.begin(), s.end());
    cout << s;
    return 0;
}

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

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

using namespace std;

int main()
{
    char str[20];

    cout<<"input string(20):";
    cin>>str;

    cout<<strlen(str)<<endl;
    for(int i = 0;i<strlen(str);i++)
        cout<<str[strlen(str)-(i+1)];

    cout<<"\n";
    return 0;
}

C++: #include<cstdio>
#include<iostream>
#include<algorithm>
#include<string>
using namespace std;
int main(){
  string str;
  int n;
  cin >> str;
  n = str.size();
  reverse( str.begin() , str.end() );
  cout << str << endl;
}

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

int main(){
    string s;
    cin>>s;
    int n;
    n=strlen(s);
    char a[n];
    for(int i=0;i<n;i++){
        a[i]=s[i];
    }
    for(int i=n-1;i>=0;i--){
        s[i]=a[i];
    }
    cout<<s<<endl;
    return(0);
}

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

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

C++: #include <iostream>
#include <vector>
#include <algorithm>
#include <cstdio>
#include <string>
#define rep(x,to) for(x=0;x<to;x++)
#define rep2(x,from,to) for(x=from;x<to;x++)

using namespace std;


int main(void){

string st;
	cin >> st;
	reverse(st.begin(),st.end());
	cout << st << endl;
	return 0;
}

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

int main()
{
        char str1[22],str2[22];
        int l;

        scanf("%s",str1);

        l = strlen(str1);

        for(int i=0;i<l;i++){
                str2[i] = str1[l-i-1];
        }
        str2[l] = '\0';

        printf("%s\n",str2);

        return 0;
}

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

C++: #include <cstdio>

void SwapStr(char *str){
	char *st,*end,*pt,*ptr;
	st = str;
	for(end = st;*end != '\0';end++){}
	pt = st;
	ptr = end - 1;
	char c;
	while(pt < ptr){
		c = *pt;
		*pt = *ptr;
		*ptr = c;
		pt++;
		ptr--;
	}
	
}

int main(){
	char str[21];
	while(scanf("%s",str) != EOF){
		SwapStr(str);
		printf("%s\n",str);
	}
	return 0;
}