Go: package main

import (
        "fmt"
)

func main () {
        var str string
        fmt.Scanf("%s", &str)
        show(len(str)-1, str)
}

func show(n int, str string) {
        if n == 0 {
                fmt.Printf("%s\n", string(str[n]))
        } else {
                fmt.Printf("%s", string(str[n]))
                show(n-1, str)
        }
}

Python: S = input()

cnt = -1

for i in range(len(S)) :
    if i == len(S) - 1 :
        print(S[0])
    else :
        print(S[cnt], sep = "", end = "")
        cnt -= 1

Python: print(input()[::-1])

Python: a=input()
for ch in a[::-1]:
    print(ch,end='')
print()

Python: print(input()[::-1])

Python: input_line1 = input()

length = len(input_line1)
result = ''

for i in range(length):
    result += input_line1[(i * -1)-1]
    
print(result)

Python: print(''.join(list(reversed(input()))))

Python: print(input()[::-1])

Python: str = input()
print(str[::-1])

Python: print(''.join(reversed(list(input()))))

Python: print(input()[::-1])

Python: s = input()
n = len(s)
for i in range(n):
    print(s[n-i-1], end="")
print("")

Python: a= input()
print(a[::-1])

Python: IN=input()
print(IN[::-1])

Python: # coding: utf-8
# Here your code !

import sys

for line in sys.stdin:
    print(str(line[::-1]))

Python: s = input()
print(s[::-1])

Python: print(''.join(reversed(input())))

Python: import sys

if __name__ == "__main__":
    str = input()
    print (str[::-1])

Python: # -*- coding: utf-8 -*-

print ( input ( )[::-1] )

Python: print(input()[::-1])

Python: s = input()
print(s[::-1])

Python: n=input()
print(n[::-1])

Python: print(input()[::-1])

Python: import sys

lines = []
for line in sys.stdin:
    print(line[::-1])

Python: string = input()

print(string[::-1])

Python: import sys

a = input()
print(a[::-1])

Python: if __name__ == '__main__':
    # ???????????\???
    txt = input()

    # ?????¢??????
    txt = txt[::-1]

    # ???????????????
    print(txt)

Python: S = str(input())
print(S[::-1])

Python: s = str(input())
s_new = s[::-1]
print(s_new)

Python: # coding: utf-8
inp = input()
print(inp[::-1])

Python: import sys
line = sys.stdin.readline()
inp = line[0:-1]
str_list = list(inp)
str_list.reverse()
ret = "".join(str_list)
print (ret)

Python: Str = input()
Str = list(Str)
STR = []
for i in range(len(Str)-1,-1,-1):
    STR.append(Str[i])
print(''.join(STR))

Python: print(input()[::-1])

Python: s = input()
print(s[::-1])

Python: print(input().reverse())

Python: str=input()
s=str[::-1]
print(s)

Python: str = input()
print(str[::-1])

Python: import sys
#from me.io import dup_file_stdin

#@dup_file_stdin
def solve():
    l=list(sys.stdin.readline())
    l.reverse()
    print(''.join(l))
 
solve()

Python: s = input()
print(s[::-1])

Python: line = input()
print(line[len(line),0,-1])

Python: print(input()[::-1])

Python: print(input()[::-1])

Python: import sys
print(sys.stdin[::-1])

Python: print(input()[::-1])

Python: n=input()
print(n[::-1])

Python: 
str = list(input())
str.reverse()
print(*str,sep="")

Python: print(input()[::-1])

Python: string = input()
size = len(string)
st = []
for i in range(size):
    st.append(string(size-i))
print(st)

Python: s=input()
print(s[::-1])

Python: a = str(input())

ans = a[::-1]

print(ans)

Python: def ReverseSequence():
    str = input()
    print(str[::-1])
                
    
ReverseSequence()

Python: print(input()[::-1])

Python: while True:
    try:
        print(raw_input()[::-1])
    except EOFError: break

Python: n=str(input())
print(n[::-1])

Python: print(input()[::-1])

Python: str=input()
ans=reversed(list(str))
print(''.join(ans))

Python: print(input()[::-1])

Python: print(input()[::-1])

Python: str=list(input())
rstr=str[::-1]
print(*rstr,sep='')

Python: a = list(input())
a.reverse()
print(''.join(a))

Python: str = input()
for i in range(len(str) - 1, -1, -1):
    print(str[i], end = '')

Python: string = input("input data")
size = len(string)
st = []
for i in range(size):
    st.append(string[size-i-1])
print(''.join(st))

Python: print(input()[::-1])

Python: in_str = input().rstrip()
out_str = ""

for i in range(len(in_str)):
    out_str =  in_str[i] + out_str 

print(out_str)

Python: #! /usr/bin/python3

s=input()
print(s[::-1])

Python: print(input()[::-1])

Python: while 1:
    try:
        str = input()
    except:break
    print(str[::-1])

Python: import sys

print(sys.stdin.readline()[::-1])

Python: print(input()[::-1])

Python: s = input()
print(s[::-1])

Python: import sys

def main():
    for line in sys.stdin:
        print(line[::-1])
        
if __name__ == '__main__':
    main()

Python: txt = input("")
for i in range(0,len(txt)):
 print(txt[(len(txt)-i-1)],end="")
 print()

Python: s = raw_input()
print(s[::-1])

Python: print(input()[::-1])

Python: 
def reverseString(s):
        return s[::-1]


while True:
    try:
        s = str(input())
        s = reverseString(s)
        print(s)
    except:
        break

Python: print(input()[::-1])

Python: str=input()
print(str[::-1])

Python: a = 1
while a:
    print(input()[::-1])
    a = 0

Python: s=input()
new_str = s[::-1]
print(new_str)

Python: a = input()
b = a[::-1]
print(b)

Python: def main():
	s = input()
	print(s[::-1])

if __name__ == '__main__':
	main()

Python: a = str(input())
b = ''.join(list(reversed(a)))
print(b)

Python: str = input()
print(str[::-1])

Python: string = input("input data")
size = len(string)
st = []
for i in range(size):
    st.append(string(size-i))
print(st)

Python: # -*- coding: utf-8 -*-

import sys
import os


s = input().strip()
print(s[::-1])

Python: str=input()
print(str[::-1])

Python: import math
import itertools
x = 100
for _ in itertools.repeat(None,int(input())):
    x = math.ceil(x*1.05)
print(x*1000)

Python: import sys
print(sys.stdin.readline()[::-1])

Python: print(input()[-1])

Python: a=list(input())
a.reverse()
for i in a:
    print(i,end='')

Python: # coding: utf-8
# Your code here!

tmp_str = input()
print(tmp_str[::-1])

Python: print(input()[::-1])

Python: string = input("input data")
size = len(string)
st = []
for i in range(size):
    st.append(string[size-i-1])
print(''.join(st))

Python: s=input()
s=s[::-1]
print(s)

Python: print(input()[::-1])

Python: print(input()[::-1])

Python: print( input()[::-1])

Python: chara = input()
print(chara[::-1])

Python: print(input()[::-1])

Python: import sys

for line in sys.stdin:
    print(line[::-1])

Python: str=input()
for i in range(len(str)):
    print(str[len(str)-1-i],end='')

print()

Python: # coding=utf-8

sentence = input()
sentence.__reversed__()
print(sentence)

Python: str=input()
for i in range(len(str)):
    print(str[len(str)-1-i],end='')

print()

Python: string = input("input data")
size = len(string)
st = []
for i in range(size):
    st.append(string[size-i-1])
print(''.join(st), end='')

Python: data = []
data = input()
print(data[-1:-1-len(data):-1])

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

int main(){

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

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

putchar('\n');

return 0;		
}

C++:  #include <iostream>
#include <string>
#include <map>
#include <vector>
#include <set>
#include <iomanip>
#include <fstream>
#include <cstdint>
#include <cmath>
#include <algorithm>
#include <utility>
#include <numeric>
using namespace std;

constexpr int INF       = 1000000000;/* 1e+9a */
constexpr int MODULO    = 1000000007;

#define int long

#define REP(i,f,n) for(int i=(f); i < (n); ++i)
#define PER(i,f,n) for(int i=(n-1); i >= f; --i)

constexpr int evx[4] = { 1, 0, -1, 0 };
constexpr int evy[4] = { 0, 1, 0, -1 };

//----------------------------------
//----------------------------------

signed main()
{
    ios::sync_with_stdio(false);
	string s;
	cin >> s;
	PER(i, s.size(), 0)
		cout << s[i];
	cout << endl;
}