Go: package main

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

var scanner = bufio.NewScanner(os.Stdin)

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func main() {
	scanner.Split(bufio.ScanWords)

	str := nextString()
	for i := len(str) - 1; i >= 0; i-- {
		fmt.Print(str[i:(i + 1)])
	}
	fmt.Print("\n")
}

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 );
	
	vector<char> v( str, str + strlen( str ) );
	reverse( v.begin(), v.end() );

	for ( unsigned int i = 0; i < v.size(); i++ )
	{
		printf("%c", v[i] );
	}

	return 0;
}

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

using namespace std;

int main()
{
    string FirstString;

    cin >> FirstString;

    int PanjangString = FirstString.length();

    for(int a = PanjangString-1; a >= 0; a--)
    {
        cout << FirstString[a];
    }

}

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

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

C++: #define scanf_s scanf
#include <stdio.h>
#include <string>
#include <iostream>
using namespace std;
#define MAX 20
int main(void)
{
	int i;
	char str[MAX + 1];
	scanf_s("%s", str, MAX);
	for (i = 0; str[i + 1] != '\0'; ++i);
	for (; i >= 0;--i){
		printf("%c", str[i]);
	}
	printf("\n");
}

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

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

	for(unsigned int i=0;i<str.size();i++){
		rts+=str.at((str.size()-(i+1)));
	}
	cout<<rts<<endl;
}

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

int main()
{
	char ar[25];
	gets(ar);
	reverse(ar,ar + strlen(ar));
	puts(ar);	 
	return 0;
}

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

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

C++: #include <iostream>
#include <vector>
#include <algorithm>
#include <functional>
#include <iomanip>
#include <utility>
#include <string>
typedef unsigned long ul;

using namespace std;

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

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

int main(int argc, char *argv[]) {
	char rcv[20];
	char out[20];
	fscanf(stdin, "%s\n", rcv);
	int cnt = 0;
	for (int i = 0; i < 20; i++) {
		if (rcv[i] == '\0') {
			for (int j = i-1; j !=-1; j--) {
				out[cnt] = rcv[j];
				cnt++;
			}
			out[cnt] = '\0';
			break;
		}
	}
	printf("%s\n", out);
	
	return 0;
}

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

int main() {
	char str[21]={0};
	char result[21]={0};
	int offset;
	cin >> str;
	for (int i=20; i>=0; i--)
	{
		if (str[i]!=0)
		{
			offset = i;
			break;
		}
	}
	for (int i=0; i<=offset; i++)
	{
		result[i] = str[offset-i];
	}
	cout << result << endl;
}

C++: #include <iostream> //üoÍ
#include <string>

using namespace std;

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

	return 0;
}

C++: #include <stdio.h>

int main(void) {
  char s[21]={};
  int i=0;
  while (scanf("%c", &s[i++]) != EOF)
  ;
  while(--i >= 0)
  putchar(s[i]);
  putchar('\n');
  return 0;
}

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<iostream>
#include<string>

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

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

int main() {
	string sb;
	cin >> sb;
	reverse(sb.begin(),sb.end());
	cout << sb << endl;

	return 0;
}

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

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

void solver() {
    string str;
    cin>>str;
    reverse(str.begin(),str.end());
    cout<<str<<endl;
}

int main() {
    solver();
    return 0;
}

C++: #include <iostream>
using namespace std;
int main(void)
{
    string s;
    cin >> s;
    int n = s.length();
    string r = "";
    for (int i = 0; i < n + 1; i++)
    {
        r += s[n - i];
    }
    cout << r << endl;
}

C++: #include<stdio.h>
#include<string.h>
int main()
{
    int i,l;
    char a[20];
    gets(a);
    l=strlen(a);
    for(i=l-1;i>=0;i--)
   {

    printf("%c",a[i]);
   }
    return 0;
}

C++: #include <bits/stdc++.h>
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 <bits/stdc++.h>
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(){
	int i;
	string str;
	cin>>str;
	for(i=str.size()-1;i>=0;i--){
		cout<<str[i];
	}
	cout<<endl;
	return 0;
}

C++: #include <iostream>
#include <stdio.h>
#include <string>
#include <math.h>
#include <algorithm>
using namespace std;
int main(){
 string str1, str2;
 int i;
 cin >> str1;
 for(i = 0;i < str1.size();i++){
  str2[i] = str1[str1.size() - i - 1];
 }
 for(i = 0;i < str1.size();i++){
  cout << str2[i];
 }
 cout << endl;
 return 0; 
}

C++: #include <cstdio>
#include <cstring>
#define LOOP(index,times) for(int index=0;index<times;index++)
using namespace std;

int main(){

char str[20];
scanf("%s",str);

LOOP(i,strlen(str)+1)
	printf("%c",str[strlen(str)-i]);

return 0;		
}

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

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
    string str;
    cin>>str;
    reverse(str.begin(),str.end());
    cout<<str<<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 <iostream>
#include <vector>
using namespace std;

int main(int argc, char const* argv[])
{
	char c;
	vector<char> vc;
	while (cin >> c) {
		vc.push_back(c);
	}
	for (int i = vc.size() - 1; i >= 0; --i) {
		cout << vc[i];
	}
	cout << endl;
	return 0;
}

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

int main() {
	string a, b = "";
	cin >> a;

	for (int i = a.size() - 1; i >= 0; i--)b += a[i];
	cout << b << endl;

	return 0;
}

C++: #include <iostream>
#include <string>
#include <algorithm>
 
int main(void) {
    std::string str;
 
    std::cin >> str;
    std::for_each(str.crbegin(), str.crend(), [](const char& ch){ std::cout << ch; });
    std::cout << std::endl;
 
    return 0;
}

C++: #include <stdio.h>
#include <string.h>
int main(void) {
	char str[20];
	int i;
	scanf("%s",str);
	for(i = 0; strlen(str) > i; i++){
		printf("%c",str[strlen(str)-1 - i]);
	}
	printf("\n");
	return 0;
}

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

int main(){
	char in[21], out[21] ;
	int n, i;

	scanf("%s", in);
	n= strlen(in);
	for(i=0; i<n; i++)	out[i]=in[n-i-1];
	out[n]='\0';
	printf("%s\n", out);

 return 0;
}