#309. repeatEnd

repeatEnd

Background

Description

Given a string and an int n, return a string made of n repetitions of the last n characters of the string. You may assume that n is between 0 and the length of the string, inclusive.

Format

Input

Output

Samples

Hello" 
"llollollo"
Hello" 
"lolo"
Hello" 
"o"

Limitation

1s, 1024KiB for each test case.