Healthy sleep

Report a typo

Ann watched a TV program about health and learned that it is recommended to sleep at least AA hours per day. Oversleeping is also unhealthy and you should not sleep more than BB hours. Now, Ann sleeps HH hours per day.

Check if Ann's sleep schedule complies with the requirements of that TV program.

The input format:

The input comprises 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 .

The output format:

If Ann sleeps less than AA hours, output "Deficiency", if she sleeps more than BB hours, output "Excess".

If HH lies between AA and BB, print "Normal".

Check the case: outputs like "excess", "EXCESS", "ExCeSs" and others will not pass the tests.

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 Python 3





___

Create a free account to access the full topic