#267. 字符串末尾字符重复

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

字符串末尾字符重复

String Repetition

Background

This is a simple string manipulation problem.

Problem Description

Given a string, return a new string made of 3 copies of the last 2 characters of the original string. The string length will be at least 2.

Input Format

Input is given from Standard Input in the following format.

A string SS.

Output Format

Output to Standard Output in the following format.

A new string.

Sample

Hello
lololo
ab
ababab
Hi
HiHiHi

Sample Explanation

Sample 1: The last two characters of "Hello" are "lo\