## Mock CCC '23 Contest 1 J2 - Healthy Schedule

View as PDF

Points: 3
Time limit: 1.0s
Memory limit: 512M

Authors:
Problem type

Tommy has no time to sleep because he is writing Mock CCC problems! Because of this, he wants to know if his current sleep schedule is healthy. In order to have a healthy sleep schedule, he must go to bed between and , inclusive, and wake up between and , inclusive. He must also get between and (inclusive) hours of sleep each night.

Given , his sleep time, and , his wakeup time, can you tell him whether his sleep schedule is healthy or not?

#### Input Specification

The input consists of two lines. The first line contains an integer , representing the hour Tommy goes to bed. The second line contains an integer , representing the hour Tommy wakes up the following day. Both times are based on a -hour clock. The day begins at , and the last minute of the day is .

#### Output Specification

If Tommy's sleep schedule is healthy, output Healthy; otherwise, output, Unhealthy.

#### Sample Input 1

21
7

#### Output for Sample Input 1

Healthy

#### Explanation of Output for Sample Input 1

Tommy slept hours between and . He went to bed and woke up at healthy times. Therefore, his sleep schedule is healthy.

#### Sample Input 2

20
12

#### Output for Sample Input 2

Unhealthy

#### Explanation of Output for Sample Input 2

Tommy slept hours, which is too much sleep to be healthy.