## SAC '22 Code Challenge 1 P1 - That Teacher

View as PDF

Points: 3
Time limit: 1.0s
Memory limit: 256M

Authors:
Problem type

Mr. Prezens is a very generous man. To show his generosity for his neighbourhood, he has decided to give each of trick-or-treaters candy bars.

If Mr. Prezens has candy bars, how many candy bars will he have leftover for himself after giving each trick-or-treater candy bars?

#### Input Specification

The first line will contain an integer, , the number of trick-or-treaters he has.

The second line will contain an integer, , the number of candy bars he gives to each trick-or-treater.

The third line will contain an integer, , the number of candy bars he has.

Note: Mr. Prezens will always have at least enough candy bars for all trick-or-treaters.

#### Output Specification

Output the number of candy bars he will have left.

#### Sample Input

10
1
15

#### Sample Output

5