The Daruma Dropper consists of five tiers of wood, each with one lowercase letter. Since the character string before the piece of wood was skipped and the number of stages of wood that was skipped are given, create a program that calculates the character string after the piece of wood is skipped.
The input is given in the following format.
S N -The first line is given an S that represents the character string before dropping the piece of wood. -The second line is given the integer N, which indicates the number of rows of wood to drop. -The total input is 2 lines, and one line break is inserted at the end.
Please output the character string that is created after dropping the piece of wood.
Insert a newline at the end and do not include extra characters or blank lines.
apple 2
aple
water 5
wate
python
a = gets.chomp
b = gets.to_i
str = a.slice!(b - 1)
print a
Recommended Posts