#C13781. Remaining Novels Calculation

    ID: 43357 Type: Default 1000ms 256MiB

Remaining Novels Calculation

Remaining Novels Calculation

You are given three integers representing the number of novels in a bookstore:

  • initial_novels: the initial number of novels available.
  • new_shipment: the number of novels added in a new shipment.
  • novels_sold: the number of novels sold.

Your task is to compute the number of novels remaining after the new shipment and the sales. The calculation follows the formula:

$$ remaining = initial\_novels + new\_shipment - novels\_sold $$

Print the result to standard output.

inputFormat

The input consists of a single line with three space-separated integers:

  • The first integer represents initial_novels.
  • The second integer represents new_shipment.
  • The third integer represents novels_sold.

You should read the input from stdin.

outputFormat

Output a single integer, which is the number of novels remaining after performing the calculation. Print the result to stdout.

## sample
150 80 45
185