Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strings"
)

var sc = bufio.NewScanner(os.Stdin)

func ReverseSequence(s []string) {
	defer fmt.Println()

	for i := 0; i < len(s); i++ {
		defer fmt.Print(s[i])
	}
}

func main() {
	sc.Scan()
	strs := strings.Split(sc.Text(), "")

	ReverseSequence(strs)
}

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

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

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

int main() {
	char str[25];
	for (int i = 0;i < 25;i++) {
		str[i] = '%';
	}
	cin >> str;
	for (int i = 24; i >= 0; i--) {
		if (str[i] == '%') continue;
		cout << str[i];
	}
	cout << endl;
	return 0;
}

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

int main(){
  string str;
  int len; 
while(1){
  cin >> str;
if(str == EOF)break; 
 len = str.length();

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

C++: #include <iostream>
#include<algorithm>
#include<cmath>
#include <string>
#include <vector>
typedef unsigned long long ULL;

 int main (){
	 std::string str;

	 std::cin >> str;

	 for (int i = 0; i < str.size(); ++i) {
		 std::cout << str[str.size() - 1 - i];
	 }
	 std::cout << "" << std::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)];

}

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


int main() {
	
	char c[20];
	int size = 0;

	for (;;) {
		scanf("%c", &c[size]);
		if (c[size] == '\n')break;
		size++;
	}

	for (int i = size; i >= 0; i--) {

		printf("%c", c[i]);
	}

	//printf("\n");

	//system("pause");
	return 0;
}

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

#define MAX 20

using namespace std;

int main() {
	char str[MAX];
	cin >> str;

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

	return 0;
}

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

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

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

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

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

	for (auto s : str)
	{
		reverce = s + reverce;
	}
	std::cout << reverce << std::endl;

	return 0;
}

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

int main(){
   char str[22];
   int l;
while(gets(str))
{
l=strlen(str)-1;
while(l>=0)
{

 cout<<str[l--];
}

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

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

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


int main(){
	std::string str = "";
	//char str[20];
	std::cin >> str;
	std::cout << rev_string(str) << std::endl;

	while (1);
	return 0;
}

//*
std::string rev_string(std::string str){
	int i;
	int len = str.length();
	for (i = 0; i < len / 2; i++) {
		char temp = str[i];
		str[i] = str[len - i - 1];
		str[len - i - 1] = temp;
	}

	return str;
}
//*/

C++: main(a,b){
  for(;scanf("%d%d",&a,&b);puts(&a))
    a=log10(a+b)+49;
}

C++: #include<iostream>

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(void)
{
	char str[21];
	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>
#include<vector>
#include<deque>
using namespace std;

int main() {

    string s, ans = "";

    cin >> s;

    for(int i = 0; i < s.size(); i++) {
        ans += s[s.size() - i - 1];
    }

    cout << ans << endl;
     
    return 0;
}

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

int main(){
 char str[21];
 scanf("%s",str);
 for(int i = strlen(str) - 1;i >= 0;i--){printf("%c",str[i]);}
 return 0;
}

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

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

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

int main() {
	string line;
	while (getline(cin, line)) {
		cout << string(line.rbegin(), line.rend()) << endl;
	}
	return 0;
}

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

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

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

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

    return 0;
}

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

using namespace std;

int main() {
  char s[21];
  scanf("%s", s);
  for (int i=strlen(s)-1;i>=0;i--) putchar(s[i]);
  putchar('\n');
  return 0;
}

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

using namespace std;

int main(){
  char c[25] = {0};
  scanf("%s", c);
  for(int i = 24; i >= 0; i--)
  {
    if(c[i])
      cout << c[i];
  }
  cout << endl;

  return 0;
}

C++: #include<bits/stdc++.h>
#include<vector>
#include<list>
#include<stack>
#include<queue>
#include<algorithm>
using namespace std;

//typedef int kz;
//typedef long kz;
typedef long long kz;

kz gcd(kz a,kz b) { if(b==0) return a; else gcd(b,a%b); }
kz lcm(kz a,kz b) { return a*b/gcd(a,b); }

/**
 * vector<int>ar(3);
 * for(auto&e:ar){
 *     scanf("%d",&e);
 * }
 * sort(ar.begin(),ar.end())
 * int sum=accumulate(ar.begin(),ar.end(),0);
 **/


int main(){
    int mod=1000000007;
    int n,m;
    string c;
    cin>>c;
    reverse(c.begin(),c.end());
    cout<<c<<endl;
    return 0;
}

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

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

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

int main(){
	std::string st;
	std::cin >> st;
	
	while(!(st.empty())){
		std::cout << st.back();
		st.pop_back();
	}
	std::cout << std::endl;
	return 0;
}

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

using namespace std;

int main()
{
  string str;

  getline(cin, str);
  reverse(str.begin(), str.end());
  cout << str << "\n";

  return 0;
}

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

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

int main(void){
  char str[25];
  scanf("%s",str);
  int l = strlen(str);
  for(int i = l; i >= 0; i--){
    putchar(str[i]);
  }
  putchar('\n");
  return 0;
}