#K57267. Books Needed to Reach Goal
Books Needed to Reach Goal
Books Needed to Reach Goal
Ella has set a monthly reading goal. Given two integers (goal) and (read), representing the total number of books she aims to read and the number she has already read respectively, determine how many more books she needs to read. If (read \geq goal), output "Goal reached!".
The formula to calculate the required books is: [ \text{required} = goal - read \quad \text{if } read < goal ]
If Ella has already met or exceeded her target, simply output "Goal reached!".
inputFormat
The input consists of two space-separated integers on a single line: the first integer is the monthly reading goal (goal) and the second integer is the number of books already read (read).
outputFormat
Output the number of additional books needed to reach the goal. If Ella has already met or exceeded her goal, output the string "Goal reached!".## sample
10 7
3