#275. 字符串右旋2位

    ID: 275 Type: Default 1000ms 256MiB Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>codingbatString-1gesp3字符串

字符串右旋2位

Rotate String Right 2

Background

Problem Description

Given a string, return a "rotated right 2" version where the last 2 chars are moved to the start. The string length will be at least 2.

Input Format

The input is given from standard input in the following format.

The input consists of a single string SS.

Output Format

The output should be printed to standard output in the following format.

Output the rotated string.

Sample

Hello
"loHel"
java
"vaja"
Hi
"Hi"

Constraints

Time Limit: 1s, Memory Limit: 1024KiB