#P1421. 小玉买文具

小玉买文具

Xiaoyu Buys Stationery

Problem Source

Luogu P1421

Problem Description

The homeroom teacher gave Xiaoyu a task: buy as many signing pens as possible at the stationery shop. A signing pen costs 11 yuan 99 jiao, and the teacher gave Xiaoyu aa yuan bb jiao. Xiaoyu wants to know the maximum number of signing pens she can buy.

Input Format

The input is a single line containing two integers: aa and bb.

Output Format

Output one line containing one integer: the maximum number of signing pens Xiaoyu can buy.

Sample Input

10 3

Sample Output

5

Constraints

For all test cases, 0≤a≤1040 \leq a \leq 10^4, 0≤b≤90 \leq b \leq 9 are guaranteed.

Hint

  • The money is given as "so many yuan and so many jiao", while a pen is 11 yuan 99 jiao — the units don't match. First convert all money to a single unit before computing.
  • "The maximum number of pens" is an integer answer — think about whether integer division's truncation toward zero helps you.
  • Check against the sample: 10 3 → 5.