Preparing NOJ

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?

The first line of input will contain $$$n (1 \le n \le 1000)$$$, the number that Santa rolled.

Output "HAPPY" if Santa will become happy, and "SAD" if Santa stays sad.

13

HAPPY

21

SAD

Info

Provider CodeForces Gym

Origin UTPC Contest 10-29-21 Div. 2 (Beginner)

Code GYM103380A

Tags

Submitted 0

Passed 0

AC Rate 0%

Date 10/31/2021 14:46:34

Related