#P1085. Tian Tian's Weekly Schedule Check

    ID: 12892 Type: Default 1000ms 256MiB

Tian Tian's Weekly Schedule Check

Tian Tian's Weekly Schedule Check

Tian Tian has started middle school. Her mother believes that Tian Tian should study harder, so besides regular school, she is enrolled in extra review classes. In addition, every week her mother sends her to classes in recitation, dance, and piano. However, if Tian Tian attends more than 8 hours of classes in a single day, she becomes unhappy, and the longer the hours, the unhappier she gets. Note that nothing else makes her unhappy, and her unhappiness does not carry over to the next day.

Your task is to help check her schedule for the next week. The schedule consists of 7 numbers representing the total class hours for each day of the week (from Monday to Sunday). If none of the days exceed 8 hours, print happy. Otherwise, determine the day on which she is the unhappiest. In case of a tie (multiple days with the same maximum hours over 8), choose the earliest day.

inputFormat

The input consists of a single line containing 7 space-separated integers, each representing the number of hours Tian Tian is scheduled to attend classes on that day of the week, starting from Monday and ending on Sunday.

outputFormat

If no day has class hours greater than 8, output happy. Otherwise, output the day of the week on which she is most unhappy. The days of the week are: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday.

sample

8 8 8 8 8 8 8
happy