P8400 [CCC 2022 J1] Cupcake Party
Description
There are $28$ children in the kindergarten, so $28$ cupcakes are needed.
A large box can hold $8$ cupcakes, and a small box can hold $3$ cupcakes. Now there are $n$ large boxes and $m$ small boxes. If each child gets one cupcake, how many cupcakes will be left?
Input Format
One line with two integers $n, m$, with the meaning given in the problem description.
Output Format
One line containing the number of leftover cupcakes.
Explanation/Hint
For all testdata: $0 \le n, m \le 100$.
Translated by ChatGPT 5