Go: package main

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

func reverse(s string) string {
	runes := []rune(s)
	for i, j := 0, len(runes)-1; i < j; i, j = i+1, j-1 {
		runes[i], runes[j] = runes[j], runes[i]
	}
	return string(runes)
}

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	scanner.Scan()
	input := scanner.Text()
	fmt.Println(reverse(input))
}

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

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

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

int main(){
  string str;
  int len;


  while( cin >> str ){
  
    reverse(str.begin(),str.end());
    //len = str.length();
    /*
  for(int i=len;i>=0;i--){
    cout << str[i];
    
  }
    */
    cout << str<<endl;

  

  }
}

C++: #include <iostream>
#include <string>
#include <algorithm>
#include <cstdio>
#include <vector>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
using namespace std;

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

C++: #include <iostream>
#include <algorithm>
#include <vector>
#include <cstdio>
#include <string>
#include <set>
#include <queue>
#include <stack>
#include <cmath>
#include <functional>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<long long > vll;
typedef vector< vi > vvi;
int main() {
	string a;
	cin>>a;
	reverse(a.begin(),a.end());
	cout<<a<<endl;
}

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

using namespace std;

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

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

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

C++: #include<iostream>
#include<cstring>
using namespace std;
	
int main()
{
	char change[19];
	cout<<"please char\n";
	cin>>change[19];
	int j=strlen(change);
	j-=1;
	for(int i=j;i>=0;i--){
	cout<<change[i];
	}
	return 0;
}

C++: using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class ReverseSequence
    {
        static void Main(string[] args)
        {
            char[] charArray = System.Console.ReadLine().ToCharArray();
            for (int i = charArray.Length - 1; i >= 0; i--)
            {
                System.Console.Write(charArray[i]);
            }
        }
    }
}

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

using namespace std;
// cin >>
// cin <<
int main(){
	string a;
	int output;
	getline(cin,a);
	for(int i=(int)a.size();i>=0;i--){
		cout <<a[i];
	}
	return 0;
}

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

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

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

int main(void)
{
  int i;
  char str[21];
  cin >> str;
  
  for(i = 0; str[i] != '\0'; i++){
  }

  int j;
  char ans[21];

  for(j = 0; j < i; j++){
    ans[j] = str[i-j-1];
  }

  cout << ans << endl;

  return 0;
}

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

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

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

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

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


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

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

using namespace std;

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

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

//answer3 function
void display(const char& ch) {
	std::cout << ch;
}

int main(){
	std::string str;
	std::cin >> str;
	
	//answer1
	for(auto it = str.crbegin(); it != str.crend(); ++it){
		std::cout << *it;
	}
	
	
	//answer2
	//std::for_each(str.crbegin(), str.crend(), [](const char& ch){ std::cout << ch; });
	
	//answer3
	//std::for_each(str.crbegin(), str.crend(), display);
	
	std::cout << std::endl;
	
	return 0;
}

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

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

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

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

#define FOR(i,l,r) for(int i = (l);i < (r);i++)
#define ALL(x) (x).begin(),(x).end()
template<typename T> bool chmax(T& a,const T& b){return a < b ? (a = b,true) : false;}
template<typename T> bool chmin(T& a,const T& b){return b < a ? (a = b,true) : false;}
typedef long long ll;

string S;

int main()
{
	cin >> S;
	reverse(ALL(S));
	cout << S << endl;

	return 0;
}

C++: #include <cstdio>
#include <cstring>
#include <cstdlib>
 
int main(){
 char str[21];
 scanf("%s",str);
 for(int i = strlen(str) - 1;i >= 0;i--){
  printf("%c",str[i]);
 }
 return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
string s, a;
int main(){
	cin>>s;
	for(int i=s.length()-1;i>=0;i--){
		a=a+s[i];
	}
	cout<<a<<endl;

	
}

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

int main()
{
	char str[20];
	char* p=str;
	cin >> str;
	int count = 0;
	while(*p != NULL){
		p++;
		count++;
	}
	count--;
	for(int i=count;i>=0;i--){
		cout << str[i];
	}
	cout << endl;
	return 0;
}

C++: #include <stdio.h>

using namespace std;


int main(){
	char buf[21];
	int length=0;

	scanf("%s",buf);
	for(int i=0;buf[i]!='\0';i++)length++;
	for(int i=length-1;i>=0;i--)printf("%c",buf[i]);
	printf("\n");

    return 0;
}

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

#define N 20
using namespace std;

int main() {
    char str[N];
    cin >> str;
    reverse(str,str+strlen(str));
    printf("%s\n",str);
    return 0;
}

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

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

int main(){
string a;
cin >> a;
int b;
b=a.size();
int c;
c=b-1;
while(c>=0){
string d(a,c,1);
cout << d;
c=c-1;}

}

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

int main()
{
  string in;
  cin >> in;
  copy(in.rbegin(), in.rend(), ostream_iterator<char>(cout, ""));
  cout << endl;
}

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

int main(void)
{
	char str[81];
	size_t len; 
	size_t i;   


	len = strlen( str );

	for(i=0; i<len; ++i)
	{
		printf( "%c", str[len - i - 1] );
	}
	printf( "\n" );
	return 0;
}

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