#P184. 练30.2 错误减法
练30.2 错误减法
Description
Xiaoming is learning how to subtract 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 , he subtracts from the number.
If the last digit of a number is , he divides the number by .
You have an integer . Xiaoming will perform operations. Your task is to find the result after performing operations on this integer.
Input Format
The first line of input contains two integers and (, ).
Output Format
Output a single integer—the result after Xiaoming performs operations on the integer .
Sample
512 450