Go: package main
import (
	"fmt"
	"os"
	"bufio"
)

var sc = bufio.NewScanner(os.Stdin)

func main(){
	sc.Scan()
	str := sc.Text()
	// rev_str := make([]string, len(str))
	defer fmt.Println()
	for _, v := range []rune(str){
		defer fmt.Print(string(v))
	}
}

C++: #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <time.h>
#include <math.h>
#include <vector>
#include <queue>
#include <map>
#include <set>
#include <algorithm>
#include <iterator>
#include <sstream>
#include <string>
#include <bitset>
using namespace std;
#define FOR(I,F,N) for(int I = F; I < (int)(N); I++)
#define rep(i, n) FOR(i, 0, n)
#define FIN(V) cout<<V<<endl
#define pb push_back
#define INF (1 << 30)
typedef pair<int, int> P;
typedef long long ll;
typedef priority_queue<int> pq;
int StrToInt(string);
string IntToStr(int);
int dx[4] = {1, -1, 0, 0};
int dy[4] = {0, 0, 1, -1};

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

	return 0;
}



int StrToInt(string s){
	stringstream ss;
	ss << s;
	int val;
	ss >> val;
	return val;
}
string IntToStr(int i){
	stringstream ss;
	ss << i;
	return ss.str();
}

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

using namespace std;

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

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

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

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