#P9299. Deliv-e-droid: Package Delivery Score Calculation
Deliv-e-droid: Package Delivery Score Calculation
Deliv-e-droid: Package Delivery Score Calculation
In the game Deliv-e-droid, a robot droid delivers packages while avoiding obstacles. At the end of the game, the final score is computed based on the following point system:
- Gain \(50\) points for every package delivered.
- Lose \(10\) points for every collision with an obstacle.
- Earn a bonus of \(500\) points if the number of packages delivered is greater than the number of collisions with obstacles.
Your task is to compute the final score based on the number of packages delivered and the number of collisions.
inputFormat
The input consists of a single line containing two space-separated integers: the first integer indicates the number of packages delivered, and the second integer indicates the number of collisions with obstacles.
outputFormat
Output a single integer representing the final score of the game.
sample
3 2
630