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<stdio.h>
#include<string.h>

int main(void){

	char s[21];
	int i;

	scanf("%s",s);

	for(i=0; i<strlen(s);i++){

		printf("%c",s[strlen(s)-i]);

	}

	return 0;
}

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

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

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

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

	return 0;
}

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

using namespace std;

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

C++: #include <iostream>
#include <string>
int main() {
	std::string s;
	std::cin>>s;
	std::cout<<std::string(s.rbegin(), s.rend())<<std::endl;
}

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

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

	for(int i = str.length() - 1; i >= 0; i--)
		cout << str[i];
	cout << NULL; 

	return 0;
}

C++: #include<iostream>
#include<string>
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;
}

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

int main()
{
    char a[100];
    gets(a);
    printf("%s",strrev(a));
}

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

int main(void){

    std::string str;
    std::getline(std::cin,str);
    str.reverse(str.begin(),str.end());
    std::cout<<str<<std::endl;
    return 0;
}

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

using namespace std;
            
int main(){

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

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

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

C++: /*文字列 str を入力し、その文字列を逆順に出力するプログラムを作成して下さい。
文字は半角英数字のみで、20 文字以内とします。*/ 
#include<iostream>
using namespace std;
int main(){
    string str;
    cin>>str;
    char ji[str.size()];
    for(int i=0;i<=str.size();i++){
       ji[i]=str[str.size()-i];
    }
    for(int i=0;i<=str.size();i++){
       cout<<ji[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 <iostream>
#include <string>
using namespace std;

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

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

int main()
{
	string s;
	cin >> s;
	reverse(s.begin(), s.end());
	cout << s << endl;
    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;
  }
}

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

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

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

typedef long long ll;
typedef pair<ll, ll> P;

#define pb push_back
#define rep(i, n) for(int i = 0; i < (n); i++)
#define dep(i, a, n) for(int i = a; i >= (n); i--)
#define FOR(i, a, n) for(int i = a; i < (n); i++)
#define mod (ll)(1e9+7)
#define int ll
#define INF 100000000

__attribute__((constructor))
void initial() {
  cin.tie(0);
  ios::sync_with_stdio(false);
}

signed main() {
	string s;
  cin >> s;
  dep(i, s.size() - 1, 0) cout << s[i];
  cout << endl;
	return 0;
}

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

int main(){

	int i=0;
	char c,ca[20];
	
	while(cin>>c){
		ca[i++]=c;
	}
	while(i--){
		cout << ca[i];
	}
	cout << endl;
	return 0;
}

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

int main(){
	char s[21];
	cin >> s;
	int len=strlen(s);

	for(int i=0;i<(len/2);i++){
		char c;
		c = s[i];
		s[i] = s[len-i-1];
		s[len-i-1] = c;
	}
	cout<<s<<"\n";
return 0;
}

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

using namespace std;

int main()
{
	char str[22];
	stack<char> stk;

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

	for ( int i = 0; str[i] != '\n'; i++ )
	{
		stk.push( str[i] );
	}

	while ( !stk.empty() )
	{
		putchar( stk.top() );
		stk.pop();
	}	

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

  }

  cout << endl;

  return 0;



}

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

using namespace std;

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

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

C++: #include<bits//stdc++.h>
using namespace std;
int main(){
    string s;cin >> s;reverse(s.begin(),s.end());
    cout << s << endl;
}

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

int main(){

  string str,ans;

  cin >> str;

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

 for(int i=0;i<str.size();i++){
   cout << ans[i];
   }
 cout << endl;

  return 0;
}

C++: #include<stdio.h>



int main(){
	char c[20];

	scanf("%s",&c);
	int i;

	for(i=0;i<20;i++){
		if((int(c[19-i])!=-52)&&(int(c[19-i]!=0))){
			printf("%c",c[19-i]);
		}
	}


	return 0;
}

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

int main(){
    string str;
    cin >> str;
    for(auto it=str.rbegin();it++!=str.rend();)cout << *it;
    return 0;
}

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

int main(){
char x[30];
int i=0;
while(cin>>x[i]){if(x[i]=='\0')break; i++;}
for(int j=i-1;j>-1;j++)cout<<x[i];}

C++: #include <iostream>
#include <string>
using namespace std;
int main(void){
    int len;
    string a;
    std::cin >> a;
    len =a.length();
    if(len <= 20){
        for(int i = len - 1; i >=0; i--){
            if( isupper( a.at(i) )  == 0)
                std::cout << a.at(i);
        }
    }
    
    return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
	vector<char> s;
	char c[256];
	cin >> c;
	for (int i = 0; c[i] != NULL; i++)
	{
		s.push_back(c[i]);
	}
	if (s.size() <= 20){
		for (int i = 1; i < s.size(); i++)
		{
			int a = s.size();
			cout << s[a - i];
		}
	}
	return 0;
}

C++: #include <iostream>
#include <stdlib.h>
#include <string.h>
#include <string>
using namespace std;
void chstrrev(char *p)
{
	int loop=strlen(p)/2;
	char *R=p+strlen(p)-1,ch;
	while(loop--)
	{
		ch=*p;
		*p=*R;
		*R=ch;
		p++;
		R--;
	}
}
int main()
{
	char s[22]={0};
	cin>>s;
	chstrrev(s);
	cout<<s<<endl;
	return 0;
}