Healthy sleep

Report a typo

Ann watched a TV program about health and learned that she should sleep at least AA hours per day, but oversleeping is also not healthy and you should not sleep more than BB hours. Now Ann sleeps HH hours per day. If Ann's sleep schedule complies with the requirements of that TV program – print "Normal". If Ann sleeps less than AA hours, output “Deficiency”, if she sleeps more than BB hours, output “Excess”.

Input to this program are the three strings with variables in the following order: A A , B B , H H . A A is always less than or equal to B B .

Please note letters case: the output should exactly correspond to what is required in the problem, i.e. if the program has to output "Excess", such output as "excess", "EXCESS", "ExCeSs" and others will not be considered correct.

You should think carefully about all the conditions, which you need to use. A special attention should be paid to the strictness of the conditional operators used: distinguish between < \lt and \le ; > \gt and \ge . In order to understand which ones to use, read carefully the problem statement.

Sample Input 1:

6
10
8

Sample Output 1:

Normal

Sample Input 2:

7
9
10

Sample Output 2:

Excess

Sample Input 3:

7
9
2

Sample Output 3:

Deficiency
Write a program in Kotlin
fun main() {
// write your code here
}
___

Create a free account to access the full topic