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>

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

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

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

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

long long int gcd(long long int l, long long int r) {
	assert(l > 0 && r > 0);
	if (l > r)return gcd(r, l);
	else {
		const long long int num = r%l;
		if (num) {
			return gcd(l, num);
		}
		else {
			return l;
		}
	}
}
long long int lca(long long int l, long long int r) {
	return l / gcd(l, r)*r;
}
int main() {
	string st; cin >> st;
	reverse(st.begin(), st.end());
	cout << st << endl;
	return 0;
}

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

int main(void)
{
  char str[21], reversed_str[21];
  scanf("%s", str);
  int len = strlen(str);

  int i;
  for(i=0; i<len; ++i){
    reversed_str[i] = str[len-1-i];
  }
  reversed_str[len] = '\0';

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

  return 0;
}

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

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

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

using namespace std;

int main() {

	char str[20];

	cin >> str;

	//cout << strlen(str) << endl;

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

	return 0;

}

C++: #include<iostream>
#include<cstdio>
#include<utility>
#include<climits>
#include<cmath>
using namespace std;

int main()
{
	int i, j;

	char str[20] = {};
	for (i = 0; cin >> str[i]; i++)
	{}

	for (j = i - 1; j >= 0; j--)
	{
		cout << str[j] << endl;
	}
	return 0;
}

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

    int i,j,b;
        scanf("%s",&a);
        b=strlen(a);
        for(i=b;i>=0;i--)
        {
        printf("%c",a[i]);
        }
    return 0;
}

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

int main() {
	string a,b;
	int i, l;
	
	cin >>a;
	l=a.size();
	b="";
	for (i=0;i<l;i++){
		b=a.substr(i,1)+b;
	}
	cout << b<<endl;
	return 0;
}

C++: #include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<string>
#include<algorithm>
#include<vector> 
#include<limits>
#include<numeric>
#include<math.h>
using namespace std;

#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define in(x) cin >> x
#define out(str) cout << str << endl

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

string S;

int main(){
    cin>>S;
    reverse(S.begin(),S.end());
    out(S);
}

C++: #include<stdio.h>
#include<string.h>
int main(){
    int l;
    char s[32],r[32];
    scanf("%s",s);
    l=strlen(s);
    for(int i=0;i<l;i++){
        r[l-i-1]=s[i];
    }
    for(int i=0;i<l;i++){
        printf("%c",r[i]);
    }
    printf("\n");
    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;
}

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

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


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

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

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

using namespace std;



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

	i = str.size()-1;

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

}

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

long long int gcd(long long int l, long long int r) {
	assert(l > 0 && r > 0);
	if (l > r)return gcd(r, l);
	else {
		const long long int num = r%l;
		if (num) {
			return gcd(l, num);
		}
		else {
			return l;
		}
	}
}
long long int lca(long long int l, long long int r) {
	return l / gcd(l, r)*r;
}
int main() {
	string st; cin >> st;
	reverse(st.begin(), st.end());
	return 0;
}

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

using namespace std;

void swap(char *a, char *b){
  char tmp = *a;
  *a = *b;
  *b = tmp;
}

int main()
{
  char str[32];
  scanf("%s", str);
  int len = strlen(str);
  for(int i=0;i<len/2;i++)
    swap(&str[i], &str[len-i-1]);

  puts(str);
  return 0;
}

C++: #include<bits/stdc++.h>
int main()
{
	int i=21;
	char st[21];
	memset(st,false,sizeof(st));
	scanf("%s",&st);
	for(;i--;){
		if(st[i]){
			if(isalnum(st[i]) || isalpha(st[i])){
				printf("%c",st[i]);
			}	
	}
}}

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

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

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

using namespace std;

int main(){
	string A;
	char c;
	cin >> A;

	for (int i = 0; i < A.length()/2; i++){
		c = A[i];
		A[i] = A[A.length() - i - 1];
		A[A.length() - i - 1] = c;
	}
	cout << A;

	return 0;
}

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

int main()
{
	std::string str;
	std::cin >> str;
	std::copy(str.rbegin(), str.rend(),
			std::ostream_iterator<char>(std::cout));
	std::cout << std::endl;
	return 0;
}

C++: #include <iostream>

int main()
{
    std::string str, ans;
    int num;
    std::cin >> str;
    num = str.length();
    for (int i = 0; i < num; i++) {
        ans = str[i] + ans;
    }
    std::cout << ans << std::endl;
    return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <stdlib.h>
#include <iomanip>
#include <String>
#include <cmath>
#define PI 3.14159265359
using namespace std;

int main()
{
	char tmpstr[20];
	cin >> tmpstr;
	string str(tmpstr);
	auto itr = str.end() - 1;
	for (; itr > str.begin(); --itr) {
		cout << *itr;
	}
	cout << *itr << endl;
	return 0;
}

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

int main()
{
	std::string name;

	std::cin >> name;

	for(size_t i=name.size(); i--;)
	{
		std::cout << name[i];
	}

	std::cout << '\n';


}

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

C++: #include <iostream>
 
using namespace std;
 
int main() {
    char str[25];
    for (int i=0;i<25;i++) {
    	str[i]='$';
    }
    cin >> str;
    int x;
    for (int i=0;;i++) {
    	if (str[i]=='$') {
    		x=i-1;
    		break;
    	}
    }
    for (int i=0;i<=x;i++) {
    	cout << str[x-i];
    }
    cout << endl;
    return 0;
}

C++: nclude<iostream>
#include<vector>
#include<set>
#include<climits>
#include<cfloat>
#include<cmath>
#include<algorithm>
#include<string>

using namespace std;

int main(void){

  string s;

  cin >> s;

  reverse(s.begin(),s.end());

  cout << s << endl;

  return 0;
}