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>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
using namespace std;

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

C++: #include <iostream>
#include <string>
int main() {
  string s;
  while(getline(cin, s)) {
    reverse(s.begin(), s.end());
    cout << s << endl;
  }
  return 0;
}

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

using namespace std;

int main()
{
    char str[20];

    cout<<"input string(20):";
    cin>>str;

    cout<<strlen(str)<<endl;
    for(int i = 0;i<strlen(str);i++)
        cout<<str[strlen(str)-(i+1)];

    cout<<"\n";
    return 0;
}

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

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

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

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

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

C++: #include <iostream>
#include <vector>
#include <algorithm>
#include <cstdio>
#include <string>
#define rep(x,to) for(x=0;x<to;x++)
#define rep2(x,from,to) for(x=from;x<to;x++)

using namespace std;


int main(void){

string st;
	cin >> st;
	reverse(st.begin(),st.end());
	cout << st << endl;
	return 0;
}

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

int main()
{
        char str1[22],str2[22];
        int l;

        scanf("%s",str1);

        l = strlen(str1);

        for(int i=0;i<l;i++){
                str2[i] = str1[l-i-1];
        }
        str2[l] = '\0';

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

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

C++: #include <cstdio>

void SwapStr(char *str){
	char *st,*end,*pt,*ptr;
	st = str;
	for(end = st;*end != '\0';end++){}
	pt = st;
	ptr = end - 1;
	char c;
	while(pt < ptr){
		c = *pt;
		*pt = *ptr;
		*ptr = c;
		pt++;
		ptr--;
	}
	
}

int main(){
	char str[21];
	while(scanf("%s",str) != EOF){
		SwapStr(str);
		printf("%s\n",str);
	}
	return 0;
}

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

return 0;
}

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

using namespace std;

char str[21];

int main(){
  scanf("%s",str);
  for (int i=0,l=strlen(str);i<l/2;i++){
    swap(str[i],str[l-i-1]);
  }
  printf("%s\n",str);
  return 0;
}

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

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

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

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

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

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

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

int main()
{
	char str[20];
	int i;
	
	gets(str);
	
	for(i=strlen(str)-1; i>=0; i--) cout << str[i];
	
	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;
}

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

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

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

string s;

void rec(int a)
{
  if (a == -1) return;

  cout << s[a];
  rec(a - 1);
}

signed main(void)
{
  cin >> s;

  rec(s.size());
  cout << endl;
}

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

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

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

C++: #include<iostream>
#include<string.h>
using namespace std;
int main()
{
    string a;int b,c;
    getline(cin,a);
    c=a.length();
    for(b=c-1;b>=0;b--)
    {
        cout<<a[b];
    }
    cout<<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];

	while ( fgets( str, sizeof( str ), stdin ) )
	{
		for ( int i = strlen( str ) - 2; 0 <= i; i-- )
		{
			putchar( str[i] );
		}
		putchar('\n');
		puts("");
	}

	return 0;
}

C++: #include <bits/stdc++.h>
#define SORT(a) sort(a.begin(), a.end())
#define RSORT(a) sort(a.rbegin(), a.rend())
#define REP(i, n) for (int i = 0; i < n; i++)
#define FOR(i, start, end) for (int i = start; i < end; i++)
#define ALL(a) a.begin(), a.end()
#define MOD(a) a %= 1'000'000'007
using ll = long long;
using namespace std;
const int INF32       = 1'050'000'000;
const long long INF64 = 4'000'000'000'000'000'000;
const int MOD7        = 1'000'000'007;
const int MOD9        = 1'000'000'009;
template <class T> inline bool chmin(T &a, T b) {
    if (a > b) {
        a = b;
        return true;
    }
    return false;
}
template <class T> inline bool chmax(T &a, T b) {
    if (a < b) {
        a = b;
        return true;
    }
    return false;
}

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);

    string s;
    cin >> s;
    reverse(ALL(s));
    std::cout << s << '\n';
    return 0;
}

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

int main(){
	char str[30];
	int i=0;
	
	while(cin>>str[i]) i++;
	
	for(;i>=0;i--) cout<<str[i];
	
	cout<<endl;
	
	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;
}

C++: #include<iostream>

using namespace std;

main(){
  
  char str[21];
  int i=0;
  while(cin >> str[i]){i++;}
  
  i--;
  int j=i;
  for(j=i;j>=0;j--){
    
    cout << str[j] ; 
  }
  //cout << '\n' ;

  cout << endl;
  return 0;
}