题目描述
Problem Description
You are given a string $ S $ of length $ 2 $ or $ 3 $ consisting of lowercase English letters. If the length is $ 2 $, output it as is. If the length is $ 3 $, output it in reverse order.
Input Format
The input is given from the standard input in the following format:
$ S $
Output Format
If the length of $ S $ is $ 2 $, output it as is. If the length is $ 3 $, output it in reverse order.
Sample Input and Output
Sample Input #1
abc
Sample Output #1
cba
Sample Input #2
ac
Sample Output #2
ac
Notes/Hints
Constraints
- The length of $ S $ is either $ 2 $ or $ 3 $.
- $ S $ consists of lowercase English letters.
Sample Explanation 1
The length of $ S $ is $ 3 $, so output it in reverse order.
Sample Explanation 2
The length of $ S $ is $ 2 $, so output it as is.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分
样例输入
abc
样例输出
cba