LearnPy Hub
← Arena
AdvancedRating 1600

Remove K Digits

Remove k digits from the number to make it as small as possible. Print the result without leading zeros (0 if empty).

Input

A number (as text), then k.

Output

A number.

Sample 1

Input
1432219
3
Output
1219

Sample 2

Input
10200
1
Output
200
solution.py
Output appears here
Remove K Digits · Python Arena problem · LearnPy Hub