Preparing NOJ

Sad Santa

1000ms 262144K

Description:

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?

Input:

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

Output:

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

Sample Input:

13

Sample Output:

HAPPY

Sample Input:

21

Sample Output:

SAD

Info

CodeForces Gym

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

Nothing Yet