14733 - String Ninja   

Description

A cool ninja can split themself and multiply themself

Given string S, integer l and integer r. extract the substring between and r-1 and repeat it by (r-l) times

Input

The first line contain string S, following with integer  l ,and integer on the next line.

0 <= len(S) <= 100

0 <= l < r <= len(S)

Output

Output the computed string ret_S

Sample Input  Download

Sample Output  Download

Tags




Discuss