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.



Sample input:
abc


Sample output:
cba

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input())
if len(s) == 3:
    print("".join(s[::-1]))
else:
    print("".join(s))

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
S = input()

if len(S) == 3:
    S = list(S)
    S.reverse()
    S = ''.join(S)

print(S)

Submission status: Accepted

Solution code:
s=str(input())

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

Submission status: Accepted

Solution code:
S = str(input())
if(len(S)==2):
  print(S)
else:
  s =""
  s+=S[-1]
  s+=S[-2]
  s+=S[-3]
  print(s)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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())
# template


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

Submission status: Accepted

Solution code:
# https://tenka1-2018-beginner.contest.atcoder.jp/tasks/tenka1_2018_a

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/python3

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
S = str(input())

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

Submission status: Accepted

Solution code:
s = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# /usr/bin/python
# -*- coding: utf-8 -*-
import sys
import math



s = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()

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

Submission status: Accepted

Solution code:
# coding: utf-8

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="")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
if len(S)==2:
    output = S
elif len(S)==3:
    output = S[2]+S[1]+S[0]
print(output)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
Ss = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
s = input()

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

print(s)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding:utf-8

import sys
# from collections import Counter, defaultdict

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
S = input()
print(S[::-1 if len(S) % 2 else 1])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
p = input()
s = []
for i in range(len(p)):
    s.append(p[i])
if len(s) == 3:
    s.reverse()
print("".join(s))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
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())

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

Solution code:
S = input()

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

print(S)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

# 関数 solve は，もちろん，問題に応じて書き換える
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()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
str = input()

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

print(str)

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
s = list(input())

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

print(''.join(s))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

import sys


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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-


def main():
    s = input()

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

s = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
a=input()
if len(a)==2:
    print(a)
else:
    b=a[2]+a[1]+a[0]
    print(b)

Submission status: Accepted

Solution code:
string = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
str = input()

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

Submission status: Accepted

Solution code:
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_))

Submission status: Accepted

Solution code:
# your code goes here

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

Submission status: Accepted

Solution code:
x = input()

y = len(x)

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

print(x)

Submission status: Accepted

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

Submission status: Accepted

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


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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
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])

Submission status: Accepted

Solution code:
#encoding utg-8

s = list(str(input()))

if len(s) == 2:
    pass

else:
    s.reverse()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
a = input()
if (len(a) == 2):
    print(a)
else:
    print(a[::-1])

Submission status: Accepted

Solution code:
S = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
from sys import stdin

s = stdin.readline().rstrip()

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

Submission status: Accepted

Solution code:
S = list(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
 
s = input().strip()
if len(s) == 2:
    print(s)
else:
    ans = s[::-1]
    print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
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='')

Submission status: Accepted

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

Submission status: Accepted

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

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

print(result)

Submission status: Accepted

Solution code:
l = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# your code goes here
S = input()
length = len(S)
if length == 2:
	print(S)
elif length == 3:
	print(S[::-1])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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="")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
num = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input())

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
chr = raw_input()

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

print(s)

Submission status: Accepted

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

a = len(s)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()

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