11548 - Money in Wallet   

Description

Sam is a handsome boy.

One day, he goes to zoo with his friends. Before going out, Sam's mother gives him pocket money.

She gives him some five dollar coins and ten dollar coins.

And at zoo, Sam spends a little money.

Please calculate the rest money Sam has after zoo.

 

Input

There are 3 inputs.

First two inputs are the numbers of five dollar coins and ten dollar coins he received from parents.

And the last input is the money he spent.

The number will be less than 2*1010 and bigger than or equal to 0.

 

Output

Print the rest of the money.

(Remember add \n at the end)

Sample Input  Download

Sample Output  Download

Tags




Discuss