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<string.h>
using namespace std;

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

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


int main() {
	char a[21] = {0};
	cin.getline(a, 21);
	for (int i = 0; i < 21; i++) {
		if (a[20 - i] == '\0')
			continue;
		cout << a[20 - i];
	}
	cout << endl;
	return 0;
}

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

int main(){
    std::string str;
    std::cin >> str;
    const int size = str.size();
    for(int i = 0; i < size; ++i){
        if(i != size - 1){
            std::cout << str.back();
        }else{
            std::cout << str.back() << std::endl;
        }
        str.erase(str.size() - 1, 1);
    }
    return 0;
}

C++: #include <iostream>
#include <stdio.h>
int main(){

	char a[21];
	int i;

	scanf("%s",a);
	for(i=0;a[i]!='\0';i++);
	if(i>0) i--;
	for(;i>=0;i--) std::cout << a[i];
	std::cout<<std::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];
	cout << 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>

using namespace std;

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

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

auto main () -> int
{
    std::string s;
    std::getline (std::cin , s);
    for (auto ite = s.rbegin (); ite != s.rend (); ++ ite)
    {
        std::cout << * ite;
    }
    std::cout << std::endl;
}

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

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

int main(){

	std::string str;

	std::cin >> str;
	
	std::reverse(str.begin(), str.end());

	std::cout << str << std::endl;

	return 0;
}

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

void swap(char *a,char *b){
	int w=*a;
	*a=*b;
	*b=w;
}
int main(){
	string str;
	cin >> str;
	for(int i=0;i<str.size()/2;i++){
		swap(str[i],str[str.size()-i-1]);
	}
	cout << str << endl;

		return 0;
}

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

int main()
{
	string str,str2="";
	cin >> str;

	for(int i = str.length() - 1; i >= 0; i--)
		str2 += str[i];
	str2 += "\0";
	cout << str2; 

	return 0;
}

C++: #include<iostream>

using namespace std;

char str[19];

int main()
{
	cin>>str;
	for(int i=0;i<20;++i)
	{
		if(str[19-i]!=0)
			printf("%c",str[19-i]);
	}

}

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

char input[23];

int main(){
	cin >> input;

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

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

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

using namespace std;

int main(){
	int a=0;
	int i=0;
	char moji[20];
	while(cin.get(moji[i])){
		a=moji[i];
		if(a==10){break;}
		i++;}
	for(int j=0;j<i;j++){cout.put(moji[i-1-j]);}}

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

	return 0;
	
}

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

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#pragma warning(disable:4996)

int main()
{
	char str[21] = "\0";
	int X;

	scanf("%s", str);

	for (X = strlen(str)-1; X > 0; X--)
	{
		if (X <= (strlen(str) - 1) - X)
			break; 

		str[(strlen(str)-1) - X] ^= str[X];
		str[X] ^= str[(strlen(str)-1) - X];
		str[(strlen(str)-1) - X] ^= str[X];
	}
	printf("%s\n", str);

	return 0;
}
int main()
{
	char str[21] = "\0";
	int X;

	scanf("%s", str);

	for (X = strlen(str)-1; X > 0; X--)
	{
		if (X <= (strlen(str) - 1) - X)
			break; 

		str[(strlen(str)-1) - X] ^= str[X];
		str[X] ^= str[(strlen(str)-1) - X];
		str[(strlen(str)-1) - X] ^= str[X];
	}
	printf("%s\n", str);

	return 0;
}

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

using namespace std;

int main () {
	string line;
	getline (cin, line);
	for (string::reverse_iterator it = rbegin (line); it != rend (line); it++) {
		cout << *it;
	}
	cout << 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<string>

int main(){
	std::string st;
	
	std::cin >> st;
	
	while(!(st.empty())){
		std::cout << st.back();
		st.pop_back();
	}
	
	return 0;
}

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

int main(){
    int num;
	char str[NUM];

	cin >> str;

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

	}

	return 0;
}

C++: #include <iostream>

using namespace std;
string reverse(string src)
{
  int size = src.size();
  string dest = string(size, '_');
  for (int i = 0; i < size; i++) {
    dest[size-i-1] = src[i];
  }
  return dest;
}

int main(int argc, char const* argv[])
{
  string input;
  cin >> input;
  cout << reverse(input) << endl;
  return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <cstdio>
#include <map>
#include <string>
using namespace std;
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n) FOR(i,0,n)

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

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

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

	return 0;
}

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

using namespace std;

#define loop(i,a,b) for(int i = a; i < b ; i ++)
#define rep(i,a) loop(i,0,a)

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

}

C++: #include <iostream>

using namespace std;

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

	int i = str.length() - 1;

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

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

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

return 0;
}

C++: #include<stdio.h>
#include<iostream>
#include<math.h>
#include<algorithm>
#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<iostream>
#include<cstring>
using namespace std;
int main(){
  char str[21];
  cin >> str;
  for(int i = strlen(str);i>=0;i--){
    cout << str[i];
  }
  cout << endl;
}

C++: #include<iostream>
#include<cstring>
#include<algorithm>
using namespace std;
int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  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;

  cin >> str;

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

  cout << endl;

}