Go: package main

import (
  "fmt"
)

func main() {
  var a string
  fmt.Scan(&a)
  for i:= len(a) -1; i>=0; i-- {
    fmt.Print(string(a[i]))
  }
  fmt.Println()
}

C++: #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <cctype>
#include<algorithm>
#define pf printf
#define sf scanf
#define wh while
#define db double
#define LL long long
#define _USE_MATH_DEFINES
#define re(i,a,b) for(int i=a;i<b;i++)
#define rev(i,a,b) for(int i=a;i>=b;i--)

using namespace std;

int main()
{
    char s[50];
    cin>>s;
    int l=strlen(s);
    rev(i,l-1,0)pf("%c",s[i]);
    pf("\n");
    return 0;
}

C++: #include <iostream>

using namespace std;

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

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

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

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

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

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    string str;
    getline(cin, str);
    for(int i=str.length()-1; i>=0; --i) {
        cout.put(str[i]);
    }
    cout.put('\n');
    return 0;
}

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_s("%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>
using namespace std;
int main(){
	string n;
	cin>>n;
	for(int i=0;i<n.size();i++){
		cout<<n[n.size()-i-1];
	}
    return 0;
}

C++: #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
double gcd( double m, double n );
double lcm( double m, double n );
int main(int argc, const char * argv[])
{
    char a[20];
    int n=0;
    while(scanf("%c",&a[n])!=EOF){
        n++;
    }
    for(int i=n-1; i>=0;i--){
        printf("%c",a[i]);
    }
    //printf("\n");
    
    
}

C++: #include<iostream>
#include<cmath>
#include<string>
#include<cctype>
#include<vector>
#include<numeric>
#include<algorithm>
using namespace std;

int main(){
        char w[100];
//      string w;
        scanf("%s",w);
//    reverse(w.begin(),w.end());
    int len=strlen(w);
    for(int i=len;i>=0;--i){
                printf("%c",w[i]);
        }

        printf("\n");
        return 0;
}

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

#define add push_back
#define inf 2147000000

#define rep(i,n) for(int i=0;i<n;i++)
#define deb(a) cout<<a<<endl
#define out(a) cout<<a<<endl;

using namespace std;

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

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

using namespace std;

int main() {
  string str;
  getline(cin, str);
  for(int i=0; i<str.length(); i++) {
    cout<<str[str.length()-1-i];
  }
  cout<<endl;
}

C++: #include <cstdio>
#include <iostream>
#include <cmath>
#include <algorithm>
#include <string.h>

using namespace std;

int main()
{
	char str[21];
	int tmp;
	cin >> str;
	tmp=strlen(str);
	for (int i = tmp-1; i >=0; i--) {
		cout << str[i];
	}
	cout << "\n";
	return 0;
}

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

int main(void) {
    std::stack<char> st;
    std::string str;

    std::cin >> str;
    for (auto& v : str) {
        st.push(v);
    }

    do {
        std::cout << st.top();
        st.pop();
    } while (!st.empty());
    std::cout << std::endl;

    return 0;
}

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

using namespace std;

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

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

  cout << endl;
}

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

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

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

int main(){

	char str[30] ={0};
	char tempstr[30] = {0};
	int a,i;

	scanf("%s",str);

	a = strlen(str);
	a=a-1;

	for(i=a;i>=0;i--)
		tempstr[a-i]=str[i];

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


	
	return 0;
}

C++: #include<iostream>
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 <iostream>
#include <cstdio>
#include <string.h>

using namespace std;
static const int MAXV = 21;

int main() {
  char A[MAXV]={};
  cin >> A;
  int i=0;
  for(;i<MAXV;i++) {
    //printf("%c", A[i]);
    if (A[i] == 0) break;
  }
  i--;
  for(;i!=-1;i--) {
    printf("%c", A[i]);
  }
}

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

void reverseStr(string &str){
  int n=str.length();
  for (int i=0;i< n/2;i++){
    swap(str[i], str[n-i-1]);
  }
}
int main(){
    string str;
    getline(cin, str);
    reverseStr(str);
    cout << str << endl;
    return 0;
}

C++: #include <sstream>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
#include <iostream>
#include <utility>
#include <set>
#include <cctype>
#include <queue>
#include <stack>
#include <cstdio>
#include <cstdlib>
#include <cmath>
using namespace std;

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

C++: main(n){~n&&main(getchar())+(putchar(n-1?n:10));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; j >= 0; j--)
	{
		cout << str[j] << endl;
	}
	return 0;
}

C++: #include <iostream>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <algorithm>
#include <functional>

using namespace std;

int gcd( int, int );

int main()
{
	char str[21];

	scanf("%s", str );
	for ( int i = strlen( str ) - 1; 0 <= i; i-- )
	{
		putchar( str[i] );
	}
	putchar('\n');

	return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
	char c[21];
	int n = 0;
	while(cin >> c[n]){n++;}
	for(int i=n-1;i>=0;i--) cout << c[i];
	cout << endl;
}

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

int main(){
  char s[21];
  cin>>s;
  string str(s);
  for(string::reverse_iterator r = str.rbegin();r!=str.rend();r++) cout<<*r;
  cout<<endl;
  return 0;
}

C++: #include <bits/stdc++.h>
//#include "bits/stdc++.h"

#define rep(i,n) for(ll (i)=0;(i)<(ll)(n);(i)++)
#define all(x) (x).begin(),(x).end()
#define MOD 1000000007LL
#define INF (1LL<<60LL)
#define int long long
typedef long long ll;

using namespace std;



signed main() {
	string s; cin >> s;
	reverse(all(s));
	cout << s << endl;
}

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

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

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

int main() {
	string s;
	cin >> s;
	cout << string(s.rbegin(),s.rend()) << endl;
	return 0;
}