e-olymp
Competitions

Programming Principles 1. Week 6. October 7 - 13. PART 2

Delete a fragment

Given a string of Latin letters and spaces. Delete in it all characters with indices from n to m inclusive. Indexation starts from 0.

Input

First line contains text consisting of Latin letters and spaces. Second line contains two integers n and m (nm).

Output

Print the updated string.

Time limit 1 second
Memory limit 128 MiB
Input example #1
abrakadabra
3 6
Output example #1
abrabra
Input example #2
This is my lovely beautiful house
7 16
Output example #2
This is beautiful house
Author Matviychuk Sergiy Volodymyrovych
Source "ABC programming"