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):











import sys
sys.setrecursionlimit(10**6)
input=sys.stdin.readline
from math import floor,ceil,sqrt,factorial,hypot,log 
from heapq import heappop, heappush, heappushpop
from collections import Counter,defaultdict,deque
from itertools import accumulate,permutations,combinations,product,combinations_with_replacement
from bisect import bisect_left,bisect_right
from copy import deepcopy
inf=float('inf')
mod = 10**9+7
def pprint(*A): 
    for a in A:     print(*a,sep='\n')
def INT_(n): return int(n)-1
def MI(): return map(int,input().split())
def MF(): return map(float, input().split())
def MI_(): return map(INT_,input().split())
def LI(): return list(MI())
def LI_(): return [int(x) - 1 for x in input().split()]
def LF(): return list(MF())
def LIN(n:int): return [I() for _ in range(n)]
def LLIN(n: int): return [LI() for _ in range(n)]
def LLIN_(n: int): return [LI_() for _ in range(n)]
def LLI(): return [list(map(int, l.split() )) for l in input()]
def I(): return int(input())
def F(): return float(input())
def ST(): return input().replace('\n', '')
def main():
    S=ST()
    if len(S)==2:
        print(S)
    else:
        print(S[::-1])
if __name__ == '__main__':
    main()

Solution (Python):

import sys, math, itertools, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
inf = float('inf') ;mod = 10**9+7
mans = inf ;ans = 0 ;count = 0 ;pro = 1

s=input()
n=len(s)
if n==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 if len(S)==2 else S[::-1])

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)
else:
	s = list(s)
	s.reverse()
	print("".join(s))

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[2]+S[1]+S[0])

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(''.join(list(reversed(S))))

Solution (Python):
S = input()

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

Solution (Python):
def examA():
    S = SI()
    if len(S)==3:
        ans = S[::-1]
    else:
        ans = S
    print(ans)
    return

import sys,copy,bisect,itertools,heapq,math
from heapq import heappop,heappush,heapify
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LSI(): return list(map(str,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def SI(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

if __name__ == '__main__':
    examA()

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

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

if __name__ == "__main__":
    main()

Solution (Python):
import sys
input = sys.stdin.readline
S = input()[: -1]
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 = str(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().strip()
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[::-1])

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

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

Solution (Python):
S = input()

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

Solution (Python):


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

Solution (Python):
s=str(input())
n=len(s)
if n==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)
elif len(s) == 3:
  print(s[::-1])

Solution (Python):

S = input()
if len(S) == 3:
    print(S[2]+S[1]+S[0])
else:
    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:
  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:
    s = s[::-1]
    print(s)

Solution (Python):
import sys


def solve():
    readline = sys.stdin.buffer.readline
    mod = 10 ** 9 + 7
    s = str(readline().rstrip().decode('utf-8'))
    if len(s) == 2:
        print(s)
    else:
        s = list(s)
        s.reverse()
        print("".join(s))


if __name__ == '__main__':
    solve()

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

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

Solution (Python):
s = input()
print(s if len(s) == 2 else s[::-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:
  print(s[::-1])

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

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

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

if len(s) == 2:
    print("".join(s))
else:
    ans = []
    for i in range(len(s)-1,-1,-1):
        ans.append(s[i])
    else:
        print("".join(ans))

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

Solution (Python):

s = input()
print(s if len(s) == 2 else 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()
S=list(s)
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[:: -1])

Solution (Python):
s=input()
if len(s)==2:
    print(s)
else:
    print("".join(list(reversed(list(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(3):
    print(S[2-i],end="")
  print()

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):
s = str(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) == 3:
    print(s[::-1])
else:
    print(s)

Solution (Python):
s=list(input())
if len(s)==2:
    for i in range(2):
        print(s[i],end="")
else:
    s.reverse()
    for i in range(3):
        print(s[i],end="")

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

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

Solution (Python):
S = input()
if len(S) == 3:
    S = S[2]+S[1]+S[0]
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:
    print(S[::-1])
else:
    print(S)

Solution (Python):
def slove():
    import sys
    input = sys.stdin.readline
    s = str(input().rstrip('\n'))
    if len(s) == 2:
        print(s)
    else:
        print("".join([s[i] for i in range(len(s)-1, -1, -1)]))


if __name__ == '__main__':
    slove()

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

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) if len(s)==2 else print(s[::-1])

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

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

Solution (Python):
S = input()
if len(S) == 3:
    S_list = list(S)
    S_list.reverse()
    print("".join(S_list))
else:
    print(S)

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

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

Solution (Python):
s=list(input())
ans=''
if len(s)==2:
    print(''.join(s))
else:
    tmp=s[0]
    s[0]=s[2]
    s[2]=tmp
    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("".join(list(reversed(s))))

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

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

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

Solution (Python):
S=input()
N=len(S)

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

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

Solution (Python):

def main():
    S = input().rstrip()
    flg = len(S) == 2
    print(S if flg else S[::-1])


if __name__ == "__main__":
    main()

Solution (Python):
s=list(input())
if(len(s)==3):
    a=s[0]
    s[0]=s[2]
    s[2]=a
print(''.join(s))

Solution (Python):
def main():

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


if __name__ == '__main__':
    print(main())

Solution (Python):
def slove():
    import sys
    input = sys.stdin.readline
    s = str(input().rstrip('\n'))
    if len(s) == 2:
        print(s)
    else:
        print(s[2] + s[1] + s[0])


if __name__ == '__main__':
    slove()

Solution (Python):
S = input()
if len(S) == 2:
  print(S)
if len(S) == 3:
  r = "".join(reversed(S))
  print(r)

Solution (Python):
S = input()
k = []
ans = ""
for i in range(len(S)):
  k.append(S[i])
if len(k) == 2:
  for i in range(2):
    ans += k[i]
else:
  k.reverse()
  for i in range(3):
    ans += k[i]
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)%2*2])

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 print(s[::-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)
elif len(S) == 3:
    s_reversed = reversed(S)
    
    
    print(S[::-1])
else:
    pass

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

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

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

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()
print(S[::-1] if len(S) == 3 else 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:
    print(s[::-1])

Solution (Python):
s=input()

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

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()
print(s if len(s)==2 else 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) == 2:
  print(s)
elif len(s) == 3:
  print(s[::-1])

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

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 = str(input())
if len(s) == 2:
  print(s)
else:
  print(s[2] + s[1] + s[0])

Solution (Python):
def solve(s):
    return s[::-1] if (len(s) == 3) else s

s = input()
print(solve(s))

Solution (Python):

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


if __name__ == "__main__":
    main()

Solution (Python):
s = input()

if len(s) == 3:
    l = s[:]
    s = l[2] + l[1] + l[0]

print(s)

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:
	s1=""
	for i in range(0,len(s)):
		s1=s1+s[len(s)-1-i:len(s)-i]
	print(s1)

Solution (Python):
S = input()

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

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

Solution (Python):
s = input().rstrip()
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()
print(S if len(S) == 2 else S[::-1])

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

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

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)
else:
    print(s[::-1])

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

Solution (Python):
import bisect
import os
from collections import Counter, deque
from fractions import gcd
from functools import lru_cache
from functools import reduce
import functools
import heapq
import itertools
import math
import numpy as np
import re
import sys

if os.getenv("LOCAL"):
    sys.stdin = open("_in.txt", "r")

sys.setrecursionlimit(2147483647)
INF = float("inf")


S = sys.stdin.readline().rstrip()
if len(S)==2:
    print(S)
else:
    print(S[::-1])

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

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):

"""
A - Measure
https://atcoder.jp/contests/tenka1-2018-beginner/tasks/tenka1_2018_a

"""
import sys


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


def main(args):
    S = input()
    ans = solve(S)
    print(ans)


if __name__ == '__main__':
    main(sys.argv[1:])

Solution (Python):

import sys
def input(): return sys.stdin.readline().rstrip()
def mi(): return map(int, input().split())


s = input()

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

Solution (Python):

import sys
inp = sys.stdin.readline
def input(): return inp().rstrip()
def mi(): return map(int, input().split())


s = input()

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

Solution (Python):

import sys
input = sys.stdin.readline
def mi(): return map(int, input().split())


s = input().rstrip()

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

Solution (Python):



def mi(): return map(int, input().split())


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()
print(s) if len(s) == 2 else print(s[::-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)
elif 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().rstrip()
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):
n = input()
print(n if len(n) == 2 else n[::-1])

Solution (Python):
S = input()

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

Solution (Python):
S = [i for i in input()]
if len(S)==2:
    print("".join(S))
else:
    print("".join(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):
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) == 3:
    print(s[2] + s[1] + s[0])

else:
    print(s)

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

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

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

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

Solution (Python):
S=str(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):
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()
if len(a) == 2:
  print(a)
else:
  print(a[::-1])

Solution (Python):
s = input()
if len(s) == 2:
    print(s)
elif 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:
    print(S[::-1])
else:
    print(S)

Solution (Python):
s = input()

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

Solution (Python):
s=str(input())
if len(s)==2:
    print(s)
else:
    print(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)==3 else S)

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

if len(S) == 3:
    Sarray = []
    for i in range(3):
        Sarray.append(list(S)[2 - i])
    S = ''
    for i in range(3):
        S += Sarray[i]

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:
    print(s[::-1])

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

Solution (Python):
s = list(input())
if len(s) == 3:
    print("".join(s[::-1]))
else:
    print("".join(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) == 3:
    S = list(S)
    S.reverse()
    S = ''.join(S)

print(S)

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

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

Solution (Python):
S = str(input())
if(len(S)==2):
  print(S)
else:
  s =""
  s+=S[-1]
  s+=S[-2]
  s+=S[-3]
  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()
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):
def getInt(): return int(input())
def getIntList(): return [int(x) for x in input().split()]
def zeros(n): return [0]*n

INF = 10**18

class Debug():
    def __init__(self):
        self.debug = True
 
    def off(self):
        self.debug = False
 
    def dmp(self, x, cmt=''):
        if self.debug:
            if cmt != '':
                w = cmt + ': ' + str(x)
            else:
                w = str(x)
            print(w)
        return x


def prob():
    d = Debug()
    d.off()
    S = input()
    if len(S) == 2:
        return S
    else:
        return S[-1]+S[-2]+S[-3]
    

ans = prob()
print(ans)

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

Solution (Python):
import sys
input = sys.stdin.readline
def ii(): return int(input())
def mi(): return map(int, input().rstrip().split())
def lmi(): return list(map(int, input().rstrip().split()))
def li(): return list(input().rstrip())



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

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

Solution (Python):


import itertools
from collections import Counter
import bisect

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

if __name__ == '__main__':
    main()

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

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

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

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) == 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 = str(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) == 3:
    s = s[-1::-1]
print(s)

Solution (Python):

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


if __name__ == '__main__':
    main()

Solution (Python):


import sys
import math



s = str(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[2]+S[1]+S[0])

Solution (Python):
a = input()

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

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

Solution (Python):


a = str(input())

if len(a) == 2:
    print(a)
else:
    list_a = list(a)
    for i in range(0, 3):
        print(list_a[2-i], end="")

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=str(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:
  s2=s[-1]+s[1]+s[0]
  print(s2)

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:
    output = S
elif len(S)==3:
    output = S[2]+S[1]+S[0]
print(output)

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()
print(s if len(s) == 2 else 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[2]+s[1]+s[0])

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

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

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

Solution (Python):
Ss = input()

if len(Ss) == 2:
    print(Ss)
else:
    print(Ss[::-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()
print(S) if len(S)==2 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) == 3:
    S = S[::-1]
print(S)

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

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

Solution (Python):
S = input()

if len(S) == 3:
    ans = "".join(reversed(S))
else:
    ans = S

print(ans)

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

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:
  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)
if len(s)==3:
	print(s[::-1])

Solution (Python):
s = input()

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

print(s)

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:
  print(S[::-1])

Solution (Python):
s=input()
print(s[::-1] if len(s)==3 else 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[::-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):
S = input()
print(S[::-1] if len(S)%2 else S)

Solution (Python):


import sys


INF = float('inf')
MOD = 10 ** 9 + 7

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def S(): return input()


s = S()
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()
print(s if len(s)<3 else s[2]+s[1]+s[0])

Solution (Python):

S = input()
print(S[::-1 if len(S) % 2 else 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):
p = input()
s = []
for i in range(len(p)):
    s.append(p[i])
if len(s) == 3:
    s.reverse()
print("".join(s))

Solution (Python):
S = input()
if len(S) == 2:
    print(S)
else:
    S = list(S)
    S[0],S[1],S[2] = S[2],S[1],S[0]
    print("".join(S))

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

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

Solution (Python):
import sys

s = sys.stdin.read().rstrip()
if len(s) % 2 == 1:
    s = s[::-1]
print(s)

Solution (Python):

S = input()

if 2 == len(S):
    print(S)
elif 3 == len(S):
    print(S[::-1])
else:
    print("other")

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

Solution (Python):
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[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[::-1])

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

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=raw_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) == 3:
  s = s[::-1]
print(s)

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

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

Solution (Python):
s = input()

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

Solution (Python):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

sys.setrecursionlimit(10**7)
inf = 10**20
eps = 1.0 / 10**13
mod = 10**9+7
dd = [(-1,0),(0,1),(1,0),(0,-1)]
ddn = [(-1,0),(-1,1),(0,1),(1,1),(1,0),(1,-1),(0,-1),(-1,-1)]

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()
def pf(s): return print(s, flush=True)


def main():
    s = S()
    if len(s) == 2:
        return s

    return s[::-1]


print(main())

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

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

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

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

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

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 :
    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: 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):
a = input()
print(a if len(a) == 2 else a[::-1])

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

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

Solution (Python):
def main(string):
    if len(string) == 2:
        return string
    elif len(string) == 3:
        return string[::-1]

if __name__ == '__main__':
    s = input()
    print(main(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(s[::-1])

Solution (Python):
S = input()

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

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