Go: package main

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

func reverse(s string) string {
	runes := []rune(s)
	for i, j := 0, len(runes)-1; i < j; i, j = i+1, j-1 {
		runes[i], runes[j] = runes[j], runes[i]
	}
	return string(runes)
}

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	scanner.Scan()
	input := scanner.Text()
	fmt.Println(reverse(input))
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
//ranker
using namespace std;

using ll = long long;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;
using pii = pair<int, int>;
using pis = pair<int, string>;
using psi = pair<string, int>;
using D = double;


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 str;
	while(1){
		cin>>str;
		if (cin.eof())
			break;
		for(int i = (str.size()-1); i>0; i--)
			cout<<str[i];
		cout<<endl;
	}
	return 0;
}

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

using namespace std;

int main()
{
	string S;

	cin >> S;

	for (string::size_type i = 0; i < S.size() / 2; i++)
	{
		swap(S[i], S[S.size() - i - 1]);
	}

	for (string::size_type i = 0; i < S.size(); i++)
	{
		cout << S[i];
	}

	cout << endl;

	return 0;
}

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

using namespace std;

int main() {

	char str[20];
	int i, len;

	cin >> str;
	len = strlen(str);

	for (i = len - 1; i >= 0; i--)
		cout << str[i];

	putchar('\n');

	return 0;
}

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

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

int main(){
	char c[20];
	int cnt=0;
	do{
		scanf("%c",&c[cnt]);
		cnt++;
	}while(c[cnt]);
	for(int i=cnt-1;i>=0;i--){
		cout<<c[i];
	}
	return 0;
}

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

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

C++: #include<stdio.h>

int main(){
  char string[24];
  char revString[24];
  int i,s;

  fgets(string,22,stdin);
  for(i = 21;string[i] != '\n';i--){
    if(i == 0){
      break;
    }
  }
  i--;
  for(s = 0;i >= 0;i--){
    revString[s] = string[i];
    s++;
  }
  revString[s] = '\0';

  printf("%s\n",revString);  
  return 0;
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <stdio.h>

using namespace std;

int main()
{
	string str;

	cin>>str;

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

	return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
    std::string s;
    std::string::iterator iterator_s;
    cin >> s;
    for(std::string::reverse_iterator it=s.rbegin();it != s.rend(); ++it) 
        std::cout << *it ;
    return 0;
}

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

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

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

using namespace std;
int a;
char test[21];
char temp;

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

C++: #include <iostream>
#include<string>
#include<cmath>
#include<algorithm>
#include<cctype>
#include<queue>
#include<stack>
#include<stdio.h>
#include<vector>
#include<set>
#include<map>
#include<iomanip>
#define rep(i,n) for(int i=0;i<n;i++)
typedef int long long ll;

using namespace std;
int main(){




return 0;
}

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

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

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

int main()
{
    while(1)
    {
      char str[20];
    cin>>str;
    strrev(str);

    cout<<str<<"\n";
    }

    return 0;
}

C++: 
#include <algorithm>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>

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<iostream>
using namespace std;

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

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

using namespace std;

int main(int argc, char const* argv[])
{
	std::string s;
	std::cin >> s;
	std::reverse(s.begin(),s.end());
	std::cout << s << std::endl;
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL_DEFINE
#include "../../DEBUG.hpp"
#endif

int main(void) {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  reverse(s.begin(), s.end());
  cout << s << '\n';
  return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
  char str[20];
    cin>>str;
  for(int i=20;i>0;i--)
    cout<<str[i-1];
  return 0;
}

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

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

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

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++: #include <iostream>
using namespace std;

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

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

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

int main(){
    int cut=1;
    char c[21]={0};
    for(int i=0;i<20;i++){
        scanf("%c",&c[i]);
        if(c[i]=='\n')break;
        cut++;
        if(1<=c[i]-'0' && 47>=c[i]-'0'){
            c[i]='\0';
            i-=1;
            cut-=1;
            }
        if(58<=c[i]-'0' && 64>=c[i]-'0'){
            c[i]='\0';
            i-=1;
            cut-=1;
            }
        if(91<=c[i]-'0' && 96>=c[i]-'0'){
            c[i]='\0';
            i-=1;
            cut-=1;
            }
        if(123<=c[i]-'0'){
            c[i]='\0';
            i-=1;
            cut-=1;
        }
    }
    for(int j=cut;j>-1;--j){
        printf("%c",c[j]);
    }
        cout <<""<<endl;
    return 0;
}