Problem:
 Score : 100 points    Problem Statement You are given a string S of length 2 or 3 consisting of lowercase English letters. If the length of the string is 2 , print it as is; if the length is 3 , print the string after reversing it.      Constraints  The length of S is 2 or 3 .  S consists of lowercase English letters.         Input Input is given from Standard Input in the following format:  S       Output If the length of S is 2 , print S as is; if the length is 3 , print S after reversing it.        Sample Input 1 abc      Sample Output 1 cba  As the length of S is 3 , we print it after reversing it.       Sample Input 2 ac      Sample Output 2 ac  As the length of S is 2 , we print it as is.

Solution (Python):
S = input()
print(S if len(S)==2 else S[::-1])

Solution (Python):
n = input()
print(n if len(n) ==2 else n[::-1])

Solution (Python):
s = input()

x = s
if len(s) == 2 :
    print (s)
elif len(s) == 3 :
    print (x[2] + x[1] + x[0])

Solution (Python):
s = input()
if len(s) ==2:
  print(s)
else:
  print(s[2]+s[1]+s[0])

Solution (Python):
n=input()
if len(n) ==2:
    print(n)
else:
    print(n[::-1])

Solution (Python):
S = input()

listed_S = list(S)
if len(listed_S)==2:
    print(S)
elif len(listed_S)==3:
    print(S[::-1])

Solution (Python):
S =str (input ())
if len (S)==3:
    S = S [::-1]
print (S)

Solution (Python):
s = input()
if len(s) == 2:
  print(s)
else:
  print(s[::-1])

Solution (Python):
S = input()
if len(S) == 2:
	print(S)
else:
	print(S[::-1])

Solution (Python):
import sys


def solve(S):
    if len(S)==2:
        return S
    else:
        return S[::-1]

def readQuestion():
    line = sys.stdin.readline().rstrip()
    return line

def main():
    n = readQuestion()
    answer = solve(n)
    print(answer)
    
if __name__ == '__main__':
    main()

Solution (Python):
LN = input()
if len(LN) == 2:
    print(LN)
else:
    print(LN[2]+LN[1]+LN[0])

Solution (Python):
_str=input()
if(len(_str)==2):
    print(_str)
else:
    for i in range(2,-1,-1):
        print(_str[i],end="")
    print()

Solution (Python):
S = input()
if len(S) ==2:
    print(S)
else:
    print(S[::-1])

Solution (Python):
str = input()

if len(str) == 3:
    str = str[::-1]

print(str)

Solution (Python):
S=input()
if len(S)==2:
    print(S)
elif len(S)==3:
    print(S[::-1])

Solution (Python):
S = input()
if len(S) == 3:
  print(S[::-1])
else:
  print(S)

Solution (Python):
s = input()

if len(s) == 2:
    print(s)
elif len(s) == 3:
    print(s[::-1])

Solution (Python):
S=input()
if len(S) == 2:
     print(S)
else:
     a=S[2]+S[1]+S[0]
     print(a)

Solution (Python):
S = input()
if len(S) == 2:
    print(S)
else:
    print(S[::-1])

Solution (Python):
s=input()
if len(s)==2:
    print(s)
else:
    for i in range(1,4):
        print(s[-i],end="")
    print()

Solution (Python):
s=input()
print(s[::[-1,1][len(s)==2]])

Solution (Python):
_=input()
print(_[::len(_)%3-1])

Solution (Python):
_=input()
print([_,_[::-1]][len(_)-2])

Solution (Python):
_=input()
print(_ if len(_)<3else _[::-1])

Solution (Python):
a=input()
print(a if len(a)==2 else a[::-1])

Solution (Python):
S = input()
if len(S) == 3:
    S = S[::-1]
print(S)

Solution (Python):
s=input()
print(s if len(s)==2 else s[::-1])

Solution (Python):
S = input()

if len(S)==2:
    print(S)
else:
    S = S[2]+S[1]+S[0]
    print(S)

Solution (Python):
def main():
    S = input()

    if len(S) == 2:
        print(S)
    else:
        print(S[::-1])


if __name__ == '__main__':
    main()

Solution (Python):
s = list(input())

if len(s) == 3:
    s = list(reversed(s))

print(''.join(s))

Solution (Python):
S = input()
if len(S) == 2:
  print(S)
else:
  print(S[::-1])

Solution (Python):
s=input()
if len(s)==3:
  print(s[::-1])
else:
  print(s)

Solution (Python):
s = input()
print(s[::-1] if len(s) == 3 else s)

Solution (Python):
S = input()

if len(S)==2:
    print(S)
elif len(S)==3:
    s = S[::-1]
    print(s)

Solution (Python):
a = input()
if len(a) == 2:
    print(a)
else:
    print(a[::-1])

Solution (Python):


import sys


def main(input):
    return input if len(input) == 2 else input[::-1]

if __name__ == "__main__":
    print(main(sys.stdin.readline().strip()))

Solution (Python):
str=input()
x=len(str)
if x==2:
   print(str)
else:
   print(str[::-1])

Solution (Python):
st = raw_input()
if len(st)==3:
    print st[2]+st[1]+st[0]
else:
    print st

Solution (Python):
s = input()
if len(s) == 2:
    print(s)
else:
    print(s[::-1])

Solution (Python):
s = input()

if len(s)==2:
    print(s)
else :
    print(s[::-1])

Solution (Python):
S = input()
if len((S)) == 2:
	print((S))
else:
	print(S[::-1])

Solution (Python):
s = input()
if(len(s)==2):
    print(s)
else:
    print(s[-1::-1])

Solution (Python):
S = input()
print(''.join(reversed(S)) if len(S) == 3 else S)

Solution (Python):
S = str(input())
if len(S) == 3:
    print(S[::-1])
else:
    print(S)

Solution (Python):
s=input()
if len(s)%2:
  s = s[::-1]
print(s)

Solution (Python):
S = raw_input()
if len(S)>2:
  print S[::-1]
else:
  print S

Solution (Python):
s = input()
if(len(s) == 2):
    print(s)
else:
    print(s[::-1])

Solution (Python):
s = input()
if len(s) > 2:
    print(s[::-1])
else:
    print(s)

Solution (Python):



def main():
    s = input()

    if len(s) == 2:
        print(s)
    else:
        print(s[::-1])


if __name__ == '__main__':
    main()

Solution (Python):
S = input()
print(S if len(S) == 2 else S[::-1])

Solution (Python):
a=input()
print(a if len(a)==2 else a[::-1])

Solution (Python):
n = raw_input()
print n if len(n)==2 else n[::-1]

Solution (Python):
s = input()

if s.__len__() == 3:
    print(s[::-1])
else:
    print(s)

Solution (Python):
def a_measure(S):
    ans = ''
    if len(S) == 2:
        ans = S
    elif len(S) == 3:
        ans = S[::-1]
    return ans

S = input()
print(a_measure(S))

Solution (Python):
s = input()
if len(s) == 2 :
  print(s)
else:
  print(s[2] + "" + s[1] + "" + s[0])

Solution (Python):
s=str(input())
if(len(s)==2):
    print(s)
else:
    print(s[::-1])

Solution (Python):
s = input()
if len(s)-2: print(s[::-1])
else: print(s)

Solution (Python):

s = input()

if len(s) == 2:
	print(s)
else:
    s = list(reversed(s))
    print(''.join(s))

Solution (Python):
S = raw_input()
print(''.join(list(reversed(S))) if len(S) == 3 else S)

Solution (Python):
s=input()
if len(s)==2:
  print(s)
else:
  s=s[::-1]
  print(s)

Solution (Python):
S = input()
if len(S) == 2:
	print(S)
else:
	S = S[::-1]
	print(S)

Solution (Python):
S = input()

if len(S) == 2:
    print(S)
elif len(S) == 3:
    print(''.join(reversed(S)))

Solution (Python):
S = input()
if len(S) == 2:
    print(S)
else:
    print(S[::-1])

Solution (Python):
S=input()
if len(S)==2:
    print(S)
else:
    print(S[::-1])

Solution (Python):
S=input()
print([S[::-1],S][len(S)==2])

Solution (Python):
print((input()*5)[2::5])

Solution (Python):
s = input()
print(s if len(s) == 2 else s[::-1])

Solution (Python):


a=input()
if len(a)==2:
    print(a)
else:
    b=a[2]+a[1]+a[0]
    print(b)

Solution (Python):
string = input()

if len(string) == 3:
  print(string[::-1])
else:
  print(string)

Solution (Python):
S = input()
T = ''
if len(S) == 2:
    T = S
else:
    T = S[2] + S[1] + S[0]
print(T)

Solution (Python):
s = str(input())
if len(s) == 2:
    print(s)
else:
    s = list(s)
    s.reverse()
    print("".join(s))

Solution (Python):
s=input()
if(len(s)==2):
 print(s)
else:
 print(s[-1::-1])

Solution (Python):
n=input();print(n[::1-len(n)%2*2])

Solution (Python):
N=input()
if len(N)==3:
     N = N[::-1]
     print(N)
elif len(N)==2:
     print(N)

Solution (Python):
a=input()
if len(a)==2:
    print(a)
else:
    print(a[::-1])

Solution (Python):
s = input()
print(s if len(s) == 2 else s[::-1])

Solution (Python):
s=input();print(s[::(-1)**len(s)])

Solution (Python):
s = input()
if len(s) == 2:
    print (s)
else:
    print (s[::-1])

Solution (Python):
s = input()
print(s if len(s) == 2 else s[::-1])

Solution (Python):
S=input()
if len(S)==2:
  print(S)
else:
  print(S[::-1])

Solution (Python):
S = input()

if len(S) == 3:
    print(S[::-1])
else:
    print(S)

Solution (Python):
s=input()
if len(s)==2:
    print(s)
else:
    print(s[2]+s[1]+s[0])

Solution (Python):
n = input()
print(n if len(n)== 2 else n[::-1])

Solution (Python):
a = input()
if(len(a)==2):
  	print(a)
else:
  	print(a[::-1])

Solution (Python):
s=input();print(s[::-1]*(len(s)-2)or s)

Solution (Python):
import sys

st1=sys.stdin.readline()

if len(st1)==3:
    print(st1)

elif len(st1)==4:
    st2=st1[2]+st1[1]+st1[0]
    print(st2)

else:
    sys.exit(0)

Solution (Python):
a=input()
if len(a) == 3:
    print(a[::-1])
else:
    print(str(a))

Solution (Python):
str = input()

if len(str)==(2): 
  print(str)
else:
  print(str[::-1])

Solution (Python):
s = input()
ans = []
if len(s) == 2:
    print(s)
elif len(s) == 3:
    for i in range(len(s)):
        ans.append(s[2-i])
    ans_ = map(str, ans)
    print("".join(ans_))

Solution (Python):


s = input()
if len(s) > 2:
	print(s[::-1])
else:
	print(s)

Solution (Python):
s = input()
print(s if len(s) == 2 else s[::-1])

Solution (Python):
x = input()

y = len(x)

if y==3:
  x = x[::-1]

print(x)

Solution (Python):
S = input()
if len(S) == 2:
    print(S)
else:
    print(S[::-1])

Solution (Python):
S=input()
if len(S) == 2:
    print(S)
else:
    T=S[2]+S[1]+S[0]
    print(T)

Solution (Python):
def run(S):
    if len(S) == 2:
        return S
    else:
        return S[::-1]


def main():
    S = input()
    print(run(S))


if __name__ == '__main__':
    main()

Solution (Python):
S = input()

listed = list(S)

if len(listed) == 2:
    print(listed[0] + listed[1])
elif len(listed) == 3:
    print(listed[2] + listed[1] + listed[0])

Solution (Python):


s = list(str(input()))

if len(s) == 2:
    pass

else:
    s.reverse()

ans = "".join(s)
print(ans)

Solution (Python):
s = input()
if len(s) == 2:
    print(s)
else:
    print(s[::-1])

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

Solution (Python):
a=list(input())
if len(a)==3:
    a.reverse()
    ans=""
    for i in a:
        ans+=i
    print(ans)
elif len(a)==2:
    ans = ""
    for i in a:
        ans += i
    print(ans)

Solution (Python):
s=input()
if len(s) > 2:
    print(s[::-1])
else:
    print(s)

Solution (Python):
s = input()
if len(s)==2:
    print(s)
else:
    print(s[::-1])

Solution (Python):
s = raw_input()
if len(s) == 2:
	print s
else:
	print s[::-1]

Solution (Python):
N = list(input())
if len(N) == 3:
    N.reverse()
print(''.join(N))

Solution (Python):
s = input()
if len(s)==2:
    print(s)
else:
    print(s[::-1])

Solution (Python):
a = input()
if len(a) == 2:
	print(a)
else:
	print(a[::-1])

Solution (Python):
x = input()

if len(x)<=2:
    print(x)

else:
    a = x[::-1]
    print(a)

Solution (Python):
s = input()
if (len(s)==3):
    s = s[-1::-1]
print(s)

Solution (Python):
s = input()

if len(s) == 2:
    print(s)
else:
    print(s[::-1])

Solution (Python):
S=input()
n=len(S)
if n==2:
    print(S)
elif n==3:
    s=S[::-1]
    print(s)

Solution (Python):
s = input()
if len(s) == 2:
    print(s)
else:
    print(s[::-1])

Solution (Python):
S = input()
S_len = len(S)
S_list = list(S)
ans = ''

if S_len == 2:
    print(S)

elif S_len == 3:
    for i in range(S_len-1, -1, -1):
        ans += S_list[i]
    print(ans)

Solution (Python):


a = input()
if (len(a) == 2):
    print(a)
else:
    print(a[::-1])

Solution (Python):
S = input()

if len(S)==2:
    print(S)
else:
    S_list = [list for list in S]
    S_list.reverse()
    print(''.join(S_list))

Solution (Python):
A=[]
S=input()
if len(S)==3:
    for i in S[::-1]:
        A.append(i)
    print("{}{}{}".format(A[0],A[1],A[2]))
else:
    print(S)

Solution (Python):
str = input()
if(len(str)==3):
    str = str[2]+str[1]+str[0]
print(str)

Solution (Python):
s = input()
if len(s)==3:
  s = s[2]+s[1]+s[0]
print(s)

Solution (Python):
x = input()
num = len(x)

if num == 2:
    print(x)
elif num == 3:
    x= x[::-1]
    print(x)

Solution (Python):
s = str(input())
if len(s)==2:
    print(s)
else:
    print(s[::-1])

Solution (Python):
ins = input().rstrip()
if len(ins) == 2:
    print(''.join(ins))
else:
    print(''.join(ins[::-1]))

Solution (Python):
S = input()
if len(S) == 2:
    print(S)
else:
    print(S[::-1])

Solution (Python):
S = input()
if len(S) == 3:
    S = S[::-1]
print(S)

Solution (Python):

from sys import stdin

s = stdin.readline().rstrip()

if len(s) == 2:
    print(s)
else:
    print(s[::-1])

Solution (Python):
s = input()
if len(s) == 3:
    print(s[::-1])
else:
    print(s)

Solution (Python):
S = list(input())

a = len(S)
if a == 2:
    print(S[0] + S[1])
else:
    print(S[2] + S[1] + S[0])

Solution (Python):
S = input()
if len(S) == 2:
    print(S)
else :
    print(S[::-1])

Solution (Python):

 
s = input().strip()
if len(s) == 2:
    print(s)
else:
    ans = s[::-1]
    print(ans)

Solution (Python):
seq = input()
if len(seq) == 2:
    print(seq)
else:
    print("".join(list(seq)[::-1]))

Solution (Python):
import sys

a = str(input())
if len(a) == 2:
    print(a)
else:
    print(a[::-1])

Solution (Python):
S = input()

if len(S) == 2:
    print(S)
else:
    print(S[::-1])

Solution (Python):
s = input()

if len(s) == 2:
    print(s)
else:
    s = list(s)
    s.reverse()
    print("".join(s))

Solution (Python):
import sys

S = str(input())

moji = len(S)

if moji == 2:
    print(S)
elif moji == 3:
        print(S[2:3],end='')
        print(S[1:2],end='')
        print(S[0:1],end='')

Solution (Python):
S=input()
if len(S)==2:
	print(S)
	
else:
	print(S[::-1])

Solution (Python):
A = input()
chars = list(A)

result ="0"
if len(A)==2:
    result = A
else:
    result= chars[2]+chars[1]+chars[0]

print(result)

Solution (Python):
l = str(input())

if len(l) == 3:
    l = l[::-1]
    print(l)
else:
    print(l)

Solution (Python):
a = input()
if len(a) == 2:
    print(a)
else:
    print(a[::-1])

Solution (Python):
str = str(input())
list = list(str)
a = len(list)
if a == 2:
  print(str)
else:
  list.reverse()
  ans = ' '
  for i in list:
    ans += i
  print(ans)

Solution (Python):
S=input()

if (len(S)==2):
    print(S)

if (len(S)==3):
    temp=list(S)
    temp.reverse()
    print("".join(temp))

Solution (Python):
tmp = input()
if len(tmp) == 3:
    print(tmp[::-1])
else:
    print(tmp)

Solution (Python):

S = input()
length = len(S)
if length == 2:
	print(S)
elif length == 3:
	print(S[::-1])

Solution (Python):
str = input()
if len(str) == 3:
  new_str = ''.join(list(reversed(str)))
  print(new_str)
else:
  print(str)

Solution (Python):
S = [i for i in input()]
if len(S) == 3:
	for i in reversed(S):
		print(i, end="")
else:
	for i in S:
		print(i, end="")

Solution (Python):
s = input()
ans = s
if len(s) == 3:
    ans = ''
    for i in range(3):
        ans += s[2-i]
print(ans)

Solution (Python):
a=input()
b=list(a)
n=len(b)
if(n==2):
 print(a)
else:
 print(a[::-1])

Solution (Python):
from sys import stdin
a = stdin.readline().strip()
if len(a)==3:
 a = a[::-1]
print a

Solution (Python):
s = input()

if len(s) == 2:
    print(s)
elif len(s) == 3:
    s = s[::-1]
    print(s)

Solution (Python):
num = input()

if len(num) == 2:
    print(num)
else:
    print(num[::-1])

Solution (Python):
a=input()
if len(a)==3:
    print(a[2]+a[1]+a[0])
else:
    print(a)

Solution (Python):
S = input()
a = list(S)
b = []
if len(a) == 2:
    print(S)

elif len(a) == 3:
    b = b + [a[2]] + [a[1]] + [a[0]]
    s = "".join(b)
    print(s)

Solution (Python):
str = input()
if len(str) == 2:
  print(str)
else :
  print(str[::-1])

Solution (Python):
S = input()

if len(S) == 2:
    print(S)

else:
    S = S[::-1]
    print(S)

Solution (Python):
S = list(input())
s = ""
if len(S)==3:
    s = S[0]
    S[0] = S[2]
    S[2] = s
    print(''.join(map(str, S)))
else:
    print(''.join(map(str, S)))

Solution (Python):
s=list(input())
if len(s)==3:
    s.reverse()
print(''.join(s))

Solution (Python):
s=input()
print(s if len(s)==2 else s[2]+s[1]+s[0])

Solution (Python):
S = input()
if len(S) == 2:
    print(S)
    exit()
print(S[::-1])

Solution (Python):
def main():
    x = list(input())
    if len(x) > 2:
        x.reverse()
    print("".join(x))

if __name__ == "__main__":
    main()

Solution (Python):
s = raw_input()
if(len(s) == 2):
	print s
else:
	print(''.join(reversed(s)))

Solution (Python):
def main():
    s = str(input())
    if len(s) == 2:
        print(s)
    elif len(s) == 3:
        print(s[::-1])

if __name__ == '__main__':
    main()

Solution (Python):
a = input()
if len(a) == 3:
   a = a[::-1]
print(a)

Solution (Python):
n = input()
j = [str(x) for x in list(str(n))]
k = len(j)

if k == 2:
    print(n)
if k == 3:
    j.reverse()
    print(j[0]+j[1]+j[2])

Solution (Python):
S = input()
if S.__len__() == 2:
    print(S)
else:
    S = S[::-1]
    print(S)

Solution (Python):
s = list(input())

if len(s) == 3:
  s.reverse()
print("".join(s))

Solution (Python):
a = input()
if len(a) == 2:
    print(a)
else:
    print(a[::-1])

Solution (Python):



S = raw_input()
if len(S) == 2:
    print S
else:
    print S[2] + S[1] + S[0]

Solution (Python):
a = input();print("".join(reversed(a)) if len(a) == 3 else a)

Solution (Python):
S = input()
if len(S) == 3:
    print(S[::-1])
else:
    print(S)

Solution (Python):
chr = raw_input()

if len(chr) == 3:
  chr = chr[::-1]
  print(chr)
elif len(chr) ==2:
  print(chr)

Solution (Python):
S = input()

if len(S) == 2:
    print(S)
else:
    print(S[::-1])

Solution (Python):

s=input()
print(s if len(s)==2 else s[::-1])

Solution (Python):
answer = input().strip()
if len(answer) == 2:
    print(answer)
else:
    print(answer[2] + answer[1] + answer[0])

Solution (Python):
s = input()

if len(s) > 2:
  s = s[::-1]

print(s)

Solution (Python):
S = input()
s = list(S)

a = len(s)

if a == 2:
    print(S)
if a == 3:
    print(S[::-1])

Solution (Python):
mozi = input()
ans = len(mozi)
if ans == 3:
    mozi = mozi[::-1]
print(mozi)

Solution (Python):
s = input()
if len(s)==3:
    print(s[::-1])
else:
    print(s)

Solution (Python):
S = input()
print(S if len(S) == 2 else S[::-1])

Solution (Python):
s = input()
if len(s) == 3:
    s = s[::-1]
print(s)

Solution (Python):
s=input()

if(len(s)==2):
  print(s)
else:
  for i in reversed(s):
    print(i,end="")

Solution (Python):



indata = input()


length = len(indata)

if length == 2:
    print(indata)
else:
    print(indata[::-1])

Solution (Python):
s = str(input())
if len(s) == 2:
    res = s
else:
    res = s[::-1]
print(res)

Solution (Python):
S = input()
if(len(S)==2):
    print(S)
else:
    print(S[-1::-1])

Solution (Python):



S = input()

if len(S) == 3:
    S = S[::-1]


print("{}".format(S))

Solution (Python):
S = input()
if len(S) ==2:
  print(S)
else:
  x =S[::-1]
  print(x)

Solution (Python):

s = input()

if len(s)==2:
    print(s)
else:
    print(s[::-1])

Solution (Python):
s = input()
len_s = len(s)
if  len_s is 2:
    print(s)
elif len(s) is 3:
    s = s[::-1]
    print(s)
exit()

Solution (Python):
a = input()

if len(a) == 3:
    new_str = ''.join(list(reversed(a)))
    print(new_str)
else:
    print(a)

Solution (Python):
letter = str(input())
if len(letter) == 2:
    print(letter)
else:
    print(letter[::-1])

Solution (Python):
S = input().strip()
if len(S) == 2:
  print(S)
else:
  print(S[2]+S[1]+S[0])

Solution (Python):
a = input()
if len(a) == 3:
    print(a[2]+a[1]+a[0])
else:
    print(a)

Solution (Python):
N= input()
nlen=len(N)
if nlen==3:
    CN=N[2]+N[1]+N[0]
    print (CN)
else:
    print (N)

Solution (Python):
strn = input()
if len(strn) == 3:
    print(strn[::-1])
else:
    print(strn)

Solution (Python):
num = input()
if len(num) == 2:
    print(num)
elif len(num) == 3:
    print(num[::-1])

Solution (Python):
S = input()
print(S if len(S)==2 else S[::-1])

Solution (Python):
s=input()
if len(s)==2:
  print(s)
else:
  print(s[: : -1])

Solution (Python):
s=input()
if len(s)==2:
    print(s)
else:
    print(s[2]+s[1]+s[0])

Solution (Python):
S = input()
if len(S) == 2:
    print(S)
else:
    print(S[::-1])

Solution (Python):
s = input()

if len(s) == 2:
    print(s)
else:
    print(s[2] + s[1] + s[0])

Solution (Python):
s = input()
if len(s) == 2:
    print(s)
else:
    print(s[::-1])

Solution (Python):
s = input()
print(s if len(s) == 2 else s[2] + s[1] + s[0])

Solution (Python):
s = input()
s_len = len(s)

if s_len == 2:
    print(s)
else:
    print(s[::-1])

Solution (Python):
S=list(input())
if(len(S)==2):
    print(S[0]+S[1])
else:
    print(S[2]+S[1]+S[0])

Solution (Python):
s = input()

if len(s) == 2:
  print(s)
else:
  print(s[::-1])

Solution (Python):
S = input()
if len(S)==2:
    print(S)
else:
    print(S[::-1])

Solution (Python):
I=input()
if len(I)==2:
    print(I)
else:
    print(I[2]+I[1]+I[0])

Solution (Python):
s = str(input())
if len(s)==2:
    print(s)
else:
    print(s[::-1])

Solution (Python):
S = input()

if len(S) == 2:
    print(S)
elif len(S) == 3:
    
    new_str = ''.join(list(reversed(S)))
    print(new_str)

Solution (Python):




"""








"""
def main():
    IN = input()

    if len(IN) == 2:
        print(IN)

    if len(IN) == 3:
        print(''.join(reversed(IN)))


if __name__ == '__main__':
    main()

Solution (Python):
S = input()
if len(S) == 3:
  print(S[::-1])
else:
  print(S)

Solution (Python):
s=input()
if len(s)==2:
  print(s)
else:
  print(s[::-1])

Solution (Python):
s = input()

if len(s) == 2:
    print(s)

elif len(s) == 3:
    print(s[2] + s[1] + s[0])

Solution (Python):
S = input()

if len(S) == 2:
  print(S)
else:
  result = []
  listS = list(S)
  for i in range(3):
    result.append(listS[2 - i])
  print(''.join(result))

Solution (Python):
s = input()

if len(s) == 2:
        print(s)
elif len(s) == 3:
        print(s[::-1])

Solution (Python):
n = input()
b = len(n)
if b == 2:
    print(n)
else:
    print(n[2]+n[1]+n[0])

Solution (Python):



def main():
    S = raw_input()
    if len(S) == 2:
        print(S)
    else:
        print(S[::-1])


if __name__ == "__main__":
    main()

Solution (Python):
S=input()
print(S[::-1]if len(S)==3 else S)

Solution (Python):
s = input()
if(len(s)==2):
    print(s)
else:
    s=s[::-1]
    print(s)

Solution (Python):
s = str(input())
if len(list(s)) == 3:
  print(str(s)[::-1])
else:
  print(s)

Solution (Python):


s = input()

if len(s) == 2:
  print(s)
else:
  print(s[::-1])

Solution (Python):
s=input().strip()
if len(s)==2:
    print(s)
elif len(s)==3:
    print(s[-1::-1])

Solution (Python):
S = input()
if len(S) == 2:
    print(S)
elif len(S) == 3:
    print(S[::-1])

Solution (Python):
s = input()
if len(s) == 2:
    print(s)
else:
    t = s[2] + s[1] + s[0]
    print(t)

Solution (Python):
S = input()
if len(S) == 2:
    print(S)
else:
    print(S[::-1])

Solution (Python):
S = input()

if len(S) == 2:
    print(S)
else:
    print(S[::-1])

Solution (Python):
s=list(input())
if len(s)==2:print(''.join(s))
else:
  s.reverse()
  print(''.join(s))

Solution (Python):
s=input()

if len(s)==2:
    print(s)
else:
    for i in [2,1,0]:
        print(s[i], end="")
    print("")

Solution (Python):
S = input()
if len(S)==2:
    print(S)
else:
    print(S[-1::-1])

Solution (Python):


s = str(input())

if len(s)==3:
    s = s[::-1]
print(s)

Solution (Python):
S = input()
if len(S) == 2:
    print(S)
else:
    print(S[2]+S[1]+S[0])

Solution (Python):
S = input()
if len(S) == 3:
    S = S[::-1] 
print(S)

Solution (Python):
S = input()
if len(S)==2:
    print(S)
else:
    print(S[::-1])

Solution (Python):
S = input()
if len(S) == 3: S = S[::-1]
print(S)

Solution (Python):
S = input()
if len(S) == 2:
    print(S)
else:
    print(S[::-1])

Solution (Python):
s = input()
if len(s) == 2:
    print(s)
else:
    a = ""
    a += s[2]
    a += s[1]
    a += s[0]
    print(a)

Solution (Python):
import math

def gcd(a,b):
    """Compute the greatest common divisor of a and b"""
    while b > 0:
        a, b = b, a % b
    return a

def lcm(a, b):
    """Compute the lowest common multiple of a and b"""
    return a * b / gcd(a, b)

a = input()
if(len(a)==2):
   print(a)
else:
   print(a[::-1])

Solution (Python):
S = input()
if len(S) == 2:
 print(S)
else:
 print(S[::-1])

Solution (Python):
s = input()
if len(s) == 3:
    s = s[::-1]
print(s)

Solution (Python):
s = input()

if len(s)==2:
    print(s)
else:
    print(s[::-1])

Solution (Python):
s = input()
if len(s) == 2:
    print(s)
else:
    for i in range(2,-1,-1):
        print(s[i],end = '')
    print('')

Solution (Python):
s = input()
if len(s) == 3:
  for i in reversed(s):
    print(i, end="")
else:
  print(s)

Solution (Python):
s = input()
print(s if len(s) == 2 else "".join(list(reversed(s))))

Solution (Python):
s=input()
if len(s)==2:
	print(s)
else:
	print(s[::-1])

Solution (Python):
s = input()

if len(s) == 3:
  print(s[::-1])
else:
  print(s)

Solution (Python):
S = input()

if len(S) == 2:
    print(S)
else:
    print(S[::-1])

Solution (Python):


S = input()

if len(S) == 3:
    print(S[::-1])
else:
    print(S)

Solution (Python):
a = list(input())

if len(a) == 2:
    a = "".join(a)
    print(a)
else:
    a.reverse()
    a = "".join(a)
    print(a)

Solution (Python):
a = input()
n = len(a)

if n == 2:
    ans = a
else:
    ans = a[::-1]

print(ans)

Solution (Python):
def main():
    s = str(input())
    if(len(s) == 3):
        s = s[::-1]
    print(s)

main()

Solution (Python):
l=input()
if len(l)==2:
    print(l)
else:
    print(l[::-1])

Solution (Python):
s = input()

if(len(s)==2):
    print(s)
else:
    print(s[::-1])

Solution (Python):
S = input()

if len(S)==2:
    print(S)
else:
    print(((S[::-1])))

Solution (Python):
s = input()
if len(s)==2:
    print(s)
else:
    r = s[2]+s[1]+s[0]
    print(r)

Solution (Python):

def main():
    s = input()
    if len(s) == 2:
        print(s)
    else:
        print(s[::-1])
    pass

if __name__ == '__main__':
    main()

Solution (Python):
str = raw_input()

if len(str) == 2:
    print(str)
elif len(str) == 3:
    print(str[::-1])

Solution (Python):
S = input()

if len(S) == 2:
  print(S)
else:
  print(S[2] + S[1] + S[0])

Solution (Python):

s = str(input())

if len(s) == 2:
    print(s)
else:
    print(s[2]+s[1]+s[0])

Solution (Python):



 
import sys
import math



 

fileoperation=0
if(fileoperation):
    orig_stdout = sys.stdout
    orig_stdin = sys.stdin
    inputfile = open('W:/Competitive Programming/input.txt', 'r')
    outputfile = open('W:/Competitive Programming/output.txt', 'w')
    sys.stdin = inputfile
    sys.stdout = outputfile


mod=1000000007
 

def nospace(l):
    ans=''.join(str(i) for i in l)
    return ans
 
 
 

s=str(input())
if(len(s)==2):
    print(s)
else:
    print(s[::-1])
    
    

if(fileoperation):
    sys.stdout = orig_stdout
    sys.stdin = orig_stdin
    inputfile.close()
    outputfile.close()

Solution (Python):
s = input()

if(len(s) == 2):
    print(s)
else:
    print(s[::-1])

Solution (Python):


S = input()

if len(S) == 2:
    print(S)

else:
    print('{}{}{}'.format(S[2], S[1], S[0]))

Solution (Python):
s=input()
if len(s)==2:
    print(s)
else:
    print(s[::-1])

Solution (Python):
s = input()
if len(s) == 2:
    print(s)
else:
    print(s[::-1])

Solution (Python):
s = input()
if len(s) == 2:
    print(s)
else:
    print(s[2]+s[1]+s[0])

Solution (Python):
n = input()

if len(n) == 2:
    print(n)
elif len(n) == 3:
    print(n[::-1])

Solution (Python):
s = input()

if len(s) == 2:
    print(s)
elif len(s) == 3:
    print(s[::-1])

Solution (Python):
S = input()

if len(S) == 3:
    print(S[::-1])
else:
    print(S)

Solution (Python):
S = input()
if len(S) == 2:
    print(S)
else:
    print(S[2]+S[1]+S[0])

Solution (Python):
S = raw_input()

if len(S) == 2:
	print S
elif len(S) == 3:
	print "".join([i for i in reversed(S)])

Solution (Python):
s=input()
l=len(s)
if(l==2):
    print(s)
else:
    print("".join(reversed(s)))

Solution (Python):
a=input()
if len(a)==2:
    print(a)
else:
    print(a[::-1])

Solution (Python):
s = input()
ss = list(s)
if len(ss) == 2:
    print(s)
else:
    print(s[::-1])

Solution (Python):
S = list(input())

if len(S) == 3:
    S.reverse()
print("".join(S))

Solution (Python):
S = input()
if len(S) == 2:
    print(S)
else:
    print(S[::-1])

Solution (Python):
s = input()

if len(s) == 2:
  print(s)
else:
  print(s[2] + s[1] + s[0])

Solution (Python):
a = input()

if len(a) == 3:
    print(a[::-1])
else:
    print(a)

Solution (Python):
s=input()
if (len(s) == 2):
    print(s)
else:
    print(s[::-1])

Solution (Python):
s = input()
if len(s)==2:print(s)
else:
    print(s[2]+s[1]+s[0])

Solution (Python):
S = input().strip()

if len(S) == 3:
  print(S[::-1])
else:
  print(S)

Solution (Python):
S=input()

if len(S)==3: print(S[2]+S[1]+S[0])
else: print(S)

Solution (Python):
S = input()

if len(S) == 2:

    print(S)

elif len(S) == 3:

    print(S[::-1])

Solution (Python):
s = str(input())
if len(s) == 2:
 print(s)
elif len(s) == 3:
 a = s[2] + s[1] + s[0]
 print(a)

Solution (Python):
S = input()
if len(S) == 2:
    print(S)
else:
    S = S[::-1]
    print(S)

Solution (Python):
n=input()
if len(n)==2:
    print(n)
else:
    print(n[::-1])

Solution (Python):
def main():
    S = input()
    if len(S) == 2:
        print(S)
    else:
        print(S[::-1])


if __name__ == "__main__":
    main()

Solution (Python):
S = input()

if len(S) == 2:
    ans = S
else:
    ans = S[::-1]

print(ans)

Solution (Python):
def main():
    string = input()
    if len(string) == 2:
        print(string)
    else:
        print(''.join(reversed(string)))



if __name__ == '__main__':
    main()

Solution (Python):

def main():
    n = input()

    if len(n) == 2:
        print(n)
    else:
        print(n[::-1])


if __name__ == "__main__":
        main()

Solution (Python):

S = list(input())

if len(S) == 2:
    print("".join(S))
else:
    S.reverse()
    print("".join(S))

Solution (Python):
S=input()
if len(S)==2:
    print(S)
    exit(0)
elif len(S)==3:
    for i in range(len(S)):
        print(S[len(S)-1-i], end='')

Solution (Python):
s = input()
if len(s) == 2:
    print(s)
else:
    print(s[2]+s[1]+s[0])

Solution (Python):
N =  input()
if len(N) == 2:
    print(N)
else:
    print(N[2] + N[1] + N[0])

Solution (Python):


S = input()

if len(S) == 3:
    print(S[::-1])
else:
    print(S)

Solution (Python):
s = input()
if len(s) == 2:
    print(s)
else:
    print(s[::-1])

Solution (Python):
S = input()

if len(S) <= 2:
    print(S)
else:
    print(S[::-1])

Solution (Python):
s = input()

if len(s) == 2:
    print(s)
else:
    print("".join(list(reversed(s))))

Solution (Python):
s=input()
print(s if len(s)==2 else s[::-1])

Solution (Python):
S = input()
print(S[::-1] if len(S) == 3 else S)

Solution (Python):
s=input();print(s[::-1] if len(s)-2 else s)

Solution (Python):
N=list(input())
length=len(N)
if length==2:
  print("".join(N))
else:
  N.reverse()
  print("".join(N))

Solution (Python):
s = input()
length = len(s)
if length == 2:
    print(s)
else:
    print(s[::-1])

Solution (Python):
def main():
    S= input()

    if len(S) == 2:
        print(S)
    else:
        print(S[::-1])
    return


main()

Solution (Python):
inp = input()
if len(inp) == 3:
    print(inp[::-1])
else:
    print(inp)

Solution (Python):
S = input()
if len(S) == 2:
    print(S)
else:
    print(S[::-1])

Solution (Python):
S = str(input())


if len(S) == 2:
    print(S)
else:
    print(S[::-1])

Solution (Python):
def tpbc_2018_a():
    s = input()
    if len(s) == 2:
        return s
    else:
        return s[::-1]


print(tpbc_2018_a())

Solution (Python):
s = input()
if len(s) == 3:
    print(s[::-1])
else:
    print(s)

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