408915: GYM103380 A Sad Santa
Memory Limit:256 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
A. Sad Santatime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output
Santa is sad today, and to cure his sadness, he has decided to gamble his troubles away in a game of dice. The casino attendant rolls a huge 1000-sided dice which has numbers from $$$1$$$ to $$$1000$$$; if the number that comes up on top has only odd digits, the player wins, otherwise, the house wins. Santa is naturally happier when winning at games of chance, and he becomes happy if and only if the number $$$n$$$ that is rolled is a winning number for him. Given $$$n$$$, will Santa be happy?
InputThe first line of input will contain $$$n (1 \le n \le 1000)$$$, the number that Santa rolled.
OutputOutput "HAPPY" if Santa will become happy, and "SAD" if Santa stays sad.
ExamplesInput13Output
HAPPYInput
21Output
SAD