#P184. 练30.2 错误减法

练30.2 错误减法

Description

Xiaoming is learning how to subtract 11 from a number, but he makes mistakes when dealing with two-digit numbers and larger numbers. Xiaoming performs the following operations on a number:
If the last digit of a number is not 00, he subtracts 11 from the number.
If the last digit of a number is 00, he divides the number by 1010.
You have an integer nn. Xiaoming will perform kk operations. Your task is to find the result after performing kk operations on this integer.

Input Format

The first line of input contains two integers nn and kk (2n1092≤n≤10^9, 1k501≤k≤50).

Output Format

Output a single integer—the result after Xiaoming performs kk operations on the integer nn.

Sample

512 4
50